Array in c


An array is used in a situation where more than one data has to be filled using a single variable. For example, we have to print the marks of a hundred students for this, we have to choices either we will use a hundred variables for hundred students, or by using one single variable, we can print the marks of a hundred students.

The second option is always better, as it saves time, the complexity of the program, and as well as memory.

·    Array is a set of elements

·    Array is Static memory allocation

·    Array holds elements that have the same data type.


An Array is divided into two categories,



Two Dimensional Array in c
   Multi Dimension Array in c
                     

  

Multi Dimension Array is divided into two categories,



Two Dimensional Array in c
Three  Dimensional Array in c
 



Follow the links below to know about every array