Array– An array is a collection of similar type of data.Which means that if you want to insert integer type of data than you will must take all value as integer.
Declaration of array:-
datatype array_name[size of array];
For declaration of array follow above rule of declaring array you have to first declare the data type and after giving space name your array then in between the square bracket enter the length of array.
Array example:- int abhay;
Memory Allocation :-
Memory allocation of array is divided in five parts. L_value which means location value which show the address of the value.R_value which means value you integer.Base address is that part from where the memory allocation will start Subscript call the increasing value of array which is also number of the address.For ex a,a,a. Here 0 1,2 are the subscript and at last it come subscript value. For ex a,a,a,a are the subscript value.