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 the argument of a function in c?

0 Answers  


WHO WROTE C LANGUAGE?

4 Answers  


what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7

4 Answers   TCS,


Differentiate call by value and call by reference?

0 Answers   Cyient,


What is fflush() function?

0 Answers  






1 232 34543 4567654 can anyone tell me how to slove this c question

6 Answers  


44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

6 Answers   Amdocs,


how to find out the inorder successor of a node in a tree??

2 Answers   TCS, Yahoo,


why integer range between -327680to+32767

2 Answers  


what is the different between data structure and data type?

1 Answers   Ignou,


There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?

1 Answers  


What is use of #include in c?

0 Answers  


Categories