DECLARE AN ARRAY

1. An array must be declared with type of variable or data type
2. An array contains same type of data
e.g. – int a [10]
3. The name of array cannot be same as that of any other variable within the function.
4. The size of array is specified using sub-script notation (index)
5. THE sub-script indicates that how many elements are to be allocated to an array.
6. A sub-script used to declare an array is called dimension

0 comments:

Followers

 
C - Programming -