What is array and all about?

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[7];
float abhay[7];
char abhay[7];

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[0],a[1],a[2]. Here 0 1,2 are the subscript and at last it come subscript value. For ex a[0],a[1],a[2],a[3] are the subscript value.

For more on Array follow the blog we update program daily

Leave a Reply