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

Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1128


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1069


How do I get a null pointer in my programs?

1115


When do we get logical errors?

1132


What is the maximum no. of arguments that can be given in a command line in C.?

1154


Explain what is wrong in this statement?

1125


Is null equal to 0 in sql?

1152


Explain the red-black trees?

1133


What is the difference between the expression “++a” and “a++”?

1234


Is using exit() the same as using return?

1365


What is a floating point in c?

1075


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2321


What are different types of variables in c?

1080


Differentiate between declaring a variable and defining a variable?

1048


What is wild pointer in c with example?

1064