What is the output of below code?
main()
{
static in a=5;
printf("%3d",a--);
if(a)
main();
}
Answer Posted / srinivas reddy m v
54321
here main() is called again in main function
this leads to recursion....
the function is called until a become 0.
value is retained as static key word is used.
not much clear about usage of "%3d"
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Why isnt there a numbered, multi-level break statement to break out
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What are pragmas and what are they good for?
What is #define size in c?
What are the loops in c?
why wipro wase
What is c preprocessor mean?
What are unions in c?
write a proram to reverse the string using switch case?
What does char * * argv mean in c?
Can include files be nested?
Why we write conio h in c?
How can I remove the trailing spaces from a string?
How are strings stored in c?
Why clrscr is used in c?