C Multidimensional array

An array is typically a data structure meant to store a collection of elements to which is associated with a given index. These elements are often in contiguous memory locations, although this is not a requirement.
Multidimensional-arrays can be described as multi-dimensional tables. Each index used in order to find a given element is called a dimension.
Depending on the programming language, such a data structure can be achieved through a specific multidimensional array data structure or in the shape of an “array of arrays”.

Syntax

Array Declaration

int threedim[5][10][4]; //data-type name[size1][size2]…[sizeN];

Array initialization

Example

Output: