675 

, 2.

547 

, 3.

720 

, 4.

634 

, 5.

727 

">
MCQs > IT & Programming > Embedded C >

Choose the correct output of the following C program.

int main()

{

int i,k;

i=5;

k=abc(i);

printf("%d",k);

return 0;

}

int abc(int a)

{

int b,c,d,e;

b=6;c=9;a=a/2;

d=xyz(b);

e= d+b-(c/d)+1.5;

return(e);

}

int xyz(int w)

{

int p=1;

do

{

    p=p*w;

    w--;

}

while(w>0);

return(p);

}


Embedded C MCQs

Choose the correct output of the following C program.

int main()

{

int i,k;

i=5;

k=abc(i);

printf("%d",k);

return 0;

}

int abc(int a)

{

int b,c,d,e;

b=6;c=9;a=a/2;

d=xyz(b);

e= d+b-(c/d)+1.5;

return(e);

}

int xyz(int w)

{

int p=1;

do

{

    p=p*w;

    w--;

}

while(w>0);

return(p);

}


Answer

Correct Answer:

727 

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