How to use arrays

 Array


                               Definition

An array is defined as collection of homogeneous data item those are stored in contiguous memory locations.

Instead of declare individual variables, such as number0, number1,...,and number99,you declare one array variable and use number[0], number[1],and.....,number[99] to represent individual variables.

A specific element in an array is accessed by an index.

All arrays consist of contiguous memory location.




































Comments

Popular Posts