What is the output of the below program and how it is?
void main()
{
static int var=5;
printf("%d",var--);
if(var)
main();
}
Answer Posted / anuj awasthi
above the program output is = 54321
| Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
What is actual argument?
Why isn't any of this standardized in c? Any real program has to do some of these things.
How many loops are there in c?
What is the scope of an external variable in c?
Is c compiled or interpreted?
Can main () be called recursively?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What is the difference between abs() and fabs() functions?
What are reserved words with a programming language?
how to count no of words,characters,lines in a paragraph.
What is sorting in c plus plus?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What are the differences between Structures and Arrays?
What is the explanation for modular programming?
How can you read a directory in a C program?