What is an array ?

An array is a group of related data items which share a common name. For example, we can define an array name to represent percentages of 100 students, or salaries of 1000 employees etc. Here the quantities (data items) must be similar. The complete set of value of such similar quantities is called an array, whereas each individual value in the array is called an element. Array element could be int,float,char etc. In fact, array can be of any variable type. Array element are stored in contiguous memory locations.

No comments:

Post a Comment