What is the output of below code?
main() { static int a=5; printf("%3d",a--); if(a) main(); }



What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main..

Answer / vikas

output is 5 4 3 2 1

Is This Answer Correct ?    11 Yes 2 No

Post New Answer

More C Interview Questions

What is modeling?

0 Answers  


Difference between MAC vs. IP Addressing

0 Answers  


What is the difference between typedef and #define?

0 Answers  


What is the basic structure of c?

0 Answers  


Eight queens puzzle

0 Answers  






how to write a c program to print list of fruits in alpabetical order?

0 Answers  


c program to add and delete an element from circular queue using array

3 Answers  


what is difference between C and C++

4 Answers  


How many types of arrays are there in c?

0 Answers  


All technical questions

0 Answers   TCS,


What is selection sort in c?

0 Answers  


f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?

5 Answers   Geometric Software,


Categories