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 / sireesha

54321

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a string?

649


Write a program to reverse a given number in c?

594


What is structure packing in c?

602


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

654


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1259






Why & is used in c?

709


What is static and auto variables in c?

561


Write a program to print fibonacci series using recursion?

581


When should I declare a function?

621


Why functions are used in c?

580


What is the use of extern in c?

639


What is the difference between exit() and _exit() function?

598


What are bitwise shift operators in c programming?

639


Why C language is a procedural language?

614


I heard that you have to include stdio.h before calling printf. Why?

582