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 / anuj awasthi

above the program output is = 54321

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

718


Do character constants represent numerical values?

831


What is a scope resolution operator in c?

738


What is calloc in c?

652


how do you execute a c program in unix.

630






What is variables in c?

596


What is double pointer?

552


Why do we use return in c?

560


What is storage class?

644


Explain the difference between getch() and getche() in c?

557


Array is an lvalue or not?

624


Explain can static variables be declared in a header file?

668


a c code by using memory allocation for add ,multiply of sprase matrixes

2290


What is d scanf?

580


What is meant by type casting?

616