2D Array
Hello friends welcome again.
Here we are going to discuss the 2D array topic in C++ programming (sometimes it is also called as multidimensional array). In C/C++, we can define multidimensional arrays in simple words as array of arrays. Data in multidimensional arrays are stored in tabular form (in row major order).
It will store values in multidimensional form.
As you can see I have given screen shot of 2D array program with its output. Here you can see variable "a" is defined as 2D (Two dimensional arrays) whose maximum value will be in the "100" and "200" range. In this program the length is defined by the user but its maximum value will be in 100 to 200. Program line number 7 and 9 are for entry for numbers of rows and columns (by user). And upper for loop is for entering values in the array by the user one by one and lower for loop if for showing the values entered by the user all values at first time.