Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 actual argument?

1016


Why isn't any of this standardized in c? Any real program has to do some of these things.

1174


How many loops are there in c?

1065


What is the scope of an external variable in c?

1000


Is c compiled or interpreted?

1145


Can main () be called recursively?

1075


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5573


What is the difference between abs() and fabs() functions?

1076


What are reserved words with a programming language?

1081


how to count no of words,characters,lines in a paragraph.

4397


What is sorting in c plus plus?

945


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

960


What are the differences between Structures and Arrays?

1152


What is the explanation for modular programming?

1163


How can you read a directory in a C program?

1104