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
- 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
Get step-by-step solutions from verified subject matter experts
