First page Back Continue Last page Overview Image
Accessing Array Elements
- All elements of the array can be accessed at the same statement only at initialization. After initialization the array can be accessed only element by element.
- Syntax
Array_Name [Element_Index] ;
array [ 1 ] = 3 ;
printf ( “ Element 1 = %d ” , array [ 1 ] ) ;