introduction to arrays in c

an array is a collection of vriables of homo genious data type or same datatype.these elements may be data type int,float ,char all other data types.all these are stored in consecutive emory locations.

an array is described by a single identifier . each element in an array is referenced by a subscript (an index) enclosed in a pair of square brackets.index will be in positive starts with 0

the rules for declaring an array is the same as identifiers .but we should provide the size of an array or we can leave with two square brackets[],it automatically detects the size of an array.array index starts with 0 and The maximum index value will be equal to the size of the array minus one