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

What is class and object in c?

0 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


what is c

1 Answers  


How to explain the final year project as a fresher please answer with sample project

0 Answers  


How can you pass an array to a function by value?

0 Answers  






What are called c variables?

0 Answers  


what is the use of fflush() function?

2 Answers  


What is the use of getchar functions?

0 Answers  


what is an ERP?

2 Answers   Infotech,


how can i get output the following... 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 and 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 plz plz...

3 Answers  


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


What is the basic structure of c?

0 Answers  


Categories