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
When should a far pointer be used?
What is uint8 in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
When should we use pointers in a c program?
How is = symbol different from == symbol in c programming?
What is "Hungarian Notation"?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
How can I find the modification date and time of a file?
Why do we use static in c?
a c code by using memory allocation for add ,multiply of sprase matrixes
What is the difference between a function and a method in c?
a program that can input number of records and can view it again the record
What are the keywords in c?
What is a constant?
What is string concatenation in c?