(2)
(3)
(4)
This question is based upon the figure shown below
Choose from the given image, the correct output of the following code.
#include<stdio.h>
main ()
{
int x[3][3], y[3][3];
abc(x);
xyz(x,y);
printa(y);
}
abc(m)
int m[][3];
{
int i, j;
for(i=0;i<3;i++)
{for (j=0; j<3;j++)
{m[i][j]=((i+2) + (j+3));
}}
}
xyz(x,y)
int x[][3], y[][3];
{
int i, j;
for(i=0;i<3;i++)
for (j=0;j<3;j++)
{
y[j][i]=x[i][j];
}
}
printa(m)
int m[][3];
{
int i,j;
for(i=0;i<3;i++)
{
for (j=0; j<3;j++)
printf("%d ", m[i][j]);
printf("\n");
}
}
Correct Answer:
(4)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Embedded C MCQ Questions