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


Please Help Members By Posting Answers For Below Questions

What is your stream meaning?

603


Which is the memory area not included in C program? give the reason

1499


What is f'n in math?

615


What is the value of c?

566


What is the difference between pure virtual function and virtual function?

643






What is difference between array and pointer in c?

534


What is an auto keyword in c?

636


Is c is a low level language?

557


What is the difference between void main and main in c?

621


Why double pointer is used in c?

563


Explain how do you view the path?

649


What is the difference between single charater constant and string constant?

615


Explain what does a function declared as pascal do differently?

634


4. main() { int c=- -2; printf("c=%d",c); }

1364


What is the ANSI C Standard?

773