Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Initialization of a multidimensional arrays in C/C++
In multidimensional array, the array should have dimension more that 1. The following diagram shows the memory allocation strategy for a multidimensional array with dimension 3 x 3 x 3.

This is a C++ program to initialize a multidimensional array.
Algorithm
Begin Initialize the elements of a multidimensional array. Print the size of the array. Display the content of the array. End
Example
#includeusing namespace std; int main() { int r, c; int a[][2] = {{3,1},{7,6}}; cout Output
Size of the Array:16 Content of the Array:16 3 1 7 6
Advertisements
