Question: When i is 2 and j is 3, the element in which row and which column is printed? and when i is 2 and j

  1. When i is 2 and j is 3, the element in which row and which column is printed? and when i is 2 and j is 2, the element in which row and which column is printed?

please no hand writing, thanks.

Lab10 code:

//Program 13.2

#include

#include

int main()

{

int i, j;

int a[3][4] = {1,2,3,4,5,6,7,8,9,10,11,12};

for(i = 2; i >= 0; i = i - 1)

{

for(j = 3; j >= 0; j = j - 1)

printf ("a[%d][%d] = %d\t", i, j, a[i][j]);

printf (" ");

}

getch();

return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!