main()
{
static int ivar=5;
printf("%d",ivar--);
if(ivar)
main();
}

Answers were Sorted based on User's Feedback



main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / amit

In GCC compiler 54321 is the correct answer.

Is This Answer Correct ?    29 Yes 0 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / suresh kallam

4 3 2 1 0

Is This Answer Correct ?    0 Yes 3 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / sindhujah

4

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More C Interview Questions

Which weighs more, a gram of feathers or a gram of gold?

2 Answers  


write a program to find lcm and hcf of two numbers??

1 Answers  


what is ans for this scanf(%%d",c);

1 Answers  


Which is the best sort method for library management?

1 Answers   Microsoft,


What is an array in c?

0 Answers  






Why is c so powerful?

0 Answers  


Which is the best website to learn c programming?

0 Answers  


Explain what are multibyte characters?

0 Answers  


Write down the program to sort the array.

4 Answers   Impiger,


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


What are the different types of endless loops?

0 Answers  


What is c language in simple words?

0 Answers  


Categories