how to declare array explain with program

Declaration of array with example


When declaring arrays, specify Name

Type of array
Number of elements
arrayType arrayName[ numberOfElements ];

Examples:   
int c[ 10 ]; 
float myArray[ 3284 ];

Declaring multiple arrays of same type

Format similar to regular variables

Example:
int b[ 100 ], x[ 27 ];

Labels: