Last updated on June 13th, 2020 at 08:26 pm
One dimensional array:
A list of items can be given one variable name using only one subscript and such a variable is called a one dimensional array.
Example : int number;
Two dimensional array:
When by using an array user can store two value, each for a row and a column under a variable, the array is then called a two dimensional array. Here, user can use infinite number of rows and columns. Two dimensional arrays are declared as follows,
C allows arrays of three or more dimensions. The exact limit is determined by the compiler. The general form of a multidimensional array is,
Here survey is a three dimensional array declared to contain 180 integer type elements.