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

Whats s or c mean?

1087


Explain the use of 'auto' keyword

1171


Difference between strcpy() and memcpy() function?

1210


What is calloc in c?

1192


What does static variable mean in c?

1144


program for reversing a selected line word by word when multiple lines are given without using strrev

2538


Why void is used in c?

1062


What will be the outcome of the following conditional statement if the value of variable s is 10?

1371


Can I initialize unions?

1092


How can you increase the size of a dynamically allocated array?

1235


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1301


What is main () in c language?

1187


What are the disadvantages of c language?

1257


What is #pragma statements?

1159


Which is more efficient, a switch statement or an if else chain?

1081