40,320

, 2.

40,321

, 3.

40,322

, 4.

40,323

, 5.

It will give an error. 

">
MCQs > IT & Programming > Embedded C >

Which of the following options is the output of the given program?

int main( )

{

int a=8.5, f=1 ;

f = res( a ) ;

f++;

printf ( "%d", f++ ) ;

return 0;

}

res ( int x )

{

int f=1 ;

if ( x == 1 )

return ( 1 ) ;

else

f = f/4.5 + x * res ( x - 1 ) ;

return ( f++ ) ;

}


Embedded C MCQs

Which of the following options is the output of the given program?

int main( )

{

int a=8.5, f=1 ;

f = res( a ) ;

f++;

printf ( "%d", f++ ) ;

return 0;

}

res ( int x )

{

int f=1 ;

if ( x == 1 )

return ( 1 ) ;

else

f = f/4.5 + x * res ( x - 1 ) ;

return ( f++ ) ;

}


Answer

Correct Answer:

40,320

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