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

Explain what are the __date__ and __time__ preprocessor commands?

584


What are the advantages of using new operator as compared to the function malloc ()?

746


Explain what is the difference between functions getch() and getche()?

597


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1244


What is modifier & how many types of modifiers available in c?

598






Define Spanning-Tree Protocol (STP)

634


What is #define?

569


Can we declare function inside main?

558


What does & mean in scanf?

595


How to establish connection with oracle database software from c language?

1667


Is c compiled or interpreted?

657


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1657


What are the types of pointers in c?

524


Write a program to print fibonacci series without using recursion?

597


What are the types of arrays in c?

617