Array Declaration

The array has to be declared before it can be used in a program. The general form of declaration or an array is:
type variable_name[size]
The type specifies the type of the element that are to be stored in the array like int,float etc. The variable_name is any valid variable name in C. The size indicates the maximum number of elements that can be stored in the array.
eg. float per[50];

No comments:

Post a Comment