(1) 

, 2.

(2)

, 3.

(3) 

, 4.

(4)

">
MCQs > IT & Programming > Embedded C >

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");

}

}


Embedded C MCQs

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");

}

}


Answer

Correct Answer:

(4)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Embedded C MCQ Questions

search

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it