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

Is it fine to write void main () or main () in c?

727


What is a const pointer?

779


What is file in c language?

761


Tell us something about keyword 'auto'.

827


What is ambagious result in C? explain with an example.

2280






What is an auto variable in c?

937


what do u mean by Direct access files? then can u explain about Direct Access Files?

1824


How to find a missed value, if you want to store 100 values in a 99 sized array?

1051


What are terms in math?

775


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

791


What does the format %10.2 mean when included in a printf statement?

1330


Explain what is the difference between a free-standing and a hosted environment?

868


What are the 4 types of programming language?

750


What is difference between scanf and gets?

826


In C programming, what command or code can be used to determine if a number of odd or even?

802