2 Dimension array in C language

Опубликовано: 01 Июнь 2023
на канале: IMSUC FLIP
22
1

In this video I have explained definition of 2D array i.e. array of array. In details described, how to declare and initialize an 2Dimensional array with the concept of declaration with initialization. Further explained an examples with program and output.

• The two-dimensional array can be defined as an array of arrays. The 2D array is organized as matrices which can be represented as the collection of rows and columns. 2D arrays are created to implement a relational database look alike data structure. It provides ease of holding the bulk of data at once which can be passed to any number of functions wherever required.
• The syntax to declare the 2D array is given below.
data_type array_name[rows][columns];  
• Consider the following example.
Int  matr[3][4];  
Here, 3 is the number of rows, and 4 is the number of columns.