getting Started with "C" part3
In C programming, one of the frequently arising problem is to handle similar types of data. For example: If the user want to store marks of 100 students. This can be done by creating 100 variable individually but, this process is rather tedious and impracticable. These type of problem can be handled in C programming using arrays. An array is a sequence of data item of homogeneous value(same type). Arrays are of two types: One-dimensional arrays Multidimensional arrays ( will be discussed in next chapter ) Declaration of one-dimensional array data_type array_name [ array_size ]; For example : int age [ 5 ]; Here, the name of array is age . The size of array is 5,i.e., there are 5 items(elements) of array age . All element in an array are of the same type (int, in this case). Array elements Size of array defines the number of elements in an array. Each element of array can be accessed and used by user according to the need of program. For example: ...