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 / anirban
if-statement is not properly declared
so error is there in the program
| Is This Answer Correct ? | 6 Yes | 9 No |
Post New Answer View All Answers
How to declare a variable?
What is the size of a union variable?
What is string constants?
Can I initialize unions?
What are the 5 elements of structure?
Explain what is output redirection?
How many loops are there in c?
Why we write conio h in c?
Explain what is the benefit of using const for declaring constants?
Write a program to reverse a given number in c?
How can you tell whether a program was compiled using c versus c++?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is a pragma?
Explain bitwise shift operators?
How do you print only part of a string?