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 / thiyagu
since the value of var is declared as static
the output will be 4 for each time printf is called by
recursive method main().
| Is This Answer Correct ? | 5 Yes | 19 No |
Post New Answer View All Answers
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Explain the difference between getch() and getche() in c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
In C programming, what command or code can be used to determine if a number of odd or even?
How can you increase the size of a dynamically allocated array?
What are bitwise shift operators in c programming?
Is that possible to store 32768 in an int data type variable?
Here is a neat trick for checking whether two strings are equal
Why do we use int main instead of void main in c?
Is c procedural or functional?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What are integer variable, floating-point variable and character variable?
What is the heap?
Define C in your own Language.
What is #define used for in c?