Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are array elements in C language?
What are array elements in C language?
Elements form an array, which is defined as,

int a[ 10];

Among them, int is type, that is, integer (there are char and float real types, etc. )

A is the array name [] as the subscript symbol, and the numerical constant in it is the first member element of the array.

For example, a[0] is the first member element of the array a[ 10].

It should be noted that the subscript values of array elements start from 0, that is, you define a [10].

Then his subordinate range is from a[0] to a[9]. Never take A [10] as his member.

As for elements, for example, you define a variable int a;;

Then you can make a an element of the array a[ 10]. If you use many variables,

N variables cannot be defined! At this time, you can use arrays to represent which variables!

But when you define an array, you must define its subscript value, that is, [] in a[ 10] must be a constant.