20, 10, 25, 64

, 2.

20, -16, 31, 84

, 3.

10, -20, 57, 35

, 4.

10, -16, 20, 21

, 5.

12, -16, 11, 24

">
MCQs > IT & Programming > Embedded C >

What would be the output of the given C program?

int main( )

{

int a = 10, b = 20, m = 47, n = 96 ;

abc ( &a, &b ) ;

wxy ( &m, &n);

printf ( "%d, %d, %d, %d", a, b, m, n ) ;

return 0;

}

abc( int *x, int *y )

{

int t ;

t = *x ;

t = xyz();

*x = *y ;

*y = t++ ;

}

wxy(int *p, int *q)

{

*p = *p/2+9-1;

*q = *p/2+71-2;

}

xyz()

{

int t;

t = 6/2-54/3-(5.6/4);

return(t);

}


Embedded C MCQs

What would be the output of the given C program?

int main( )

{

int a = 10, b = 20, m = 47, n = 96 ;

abc ( &a, &b ) ;

wxy ( &m, &n);

printf ( "%d, %d, %d, %d", a, b, m, n ) ;

return 0;

}

abc( int *x, int *y )

{

int t ;

t = *x ;

t = xyz();

*x = *y ;

*y = t++ ;

}

wxy(int *p, int *q)

{

*p = *p/2+9-1;

*q = *p/2+71-2;

}

xyz()

{

int t;

t = 6/2-54/3-(5.6/4);

return(t);

}


Answer

Correct Answer:

20, -16, 31, 84

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