Arrays
Arrays Arrays are data structure in which identical data types are stored. The arrays occupy the memory depending upon their size and have contiguous area of memory. We can access the arrays using the array index. To declare arrays, we have to give their data type, name and size. These are fixed-size arrays. The declaration of arrays is as follows: data_type array_name [size] ; Consider the following program: void main( ) { int x[6]; int j; for(j = 0; j < 6; j++) { x[j] = 2 * j; } } We have declared an int array of six elements and initialized it in the loop. Let�s revise some of the array concepts. The declaration of array is as int x[6]; or float x[6]; or double x[6]; You have already done these in your programming ...