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 / arti yadav

error

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many levels of pointers can you have?

695


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1620


What are # preprocessor operator in c?

624


How do I get a null pointer in my programs?

612


What is meant by type casting?

618






What is the main difference between calloc () and malloc ()?

568


What is an example of structure?

584


How can a program be made to print the line number where an error occurs?

642


How to write a multi-statement macro?

616


What is the best way to store flag values in a program?

576


What is conio h in c?

615


What is a void pointer in c?

602


What is the code for 3 questions and answer check in VisualBasic.Net?

1682


How can I make it pause before closing the program output window?

570


Can include files be nested? How many levels deep can include files be nested?

650