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
What is the difference between int main and void main?
Write a program to print fibonacci series without using recursion?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Is there a way to compare two structure variables?
Explain that why C is procedural?
How does #define work?
Explain output of printf("Hello World"-'A'+'B'); ?
Simplify the program segment if X = B then C ← true else C ← false
What is double pointer?
How can you increase the allowable number of simultaneously open files?
What are the primitive data types in c?
What is spark map function?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Do you know null pointer?
Why do we need a structure?