178k views
4 votes
Dimensional arrays can be created using loops. 2 dimensional arrays can be created using:

a-A While Loop with the Bundle Function

b-Nested Loops

c-A For Loop With the Bundle Function

d-Nested Bundling Functions

1 Answer

3 votes

Answer:

b-Nested Loops

Step-by-step explanation:

To create a 1-D array we use single loop.For example:-

int a[10];

for(int i=0;i<10;i++)

{

cin>>a[i];

}

Taking input of a 1-D array.

For creating a 2-D array we use nested loops.

int a[row][column];

for(int i=0;i<row;i++)

{

for(int j=0;j<column;j++)

{

cin>>a[i][j];

}

}

Hence the answer for this question is nested loops.

User Yodalr
by
6.3k points