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

What is data types?

1086


Does c have enums?

1102


if p is a string contained in a string?

1848


What are disadvantages of C language.

1164


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1068


What is void main ()?

1075


What does %d do in c?

962


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1093


What is the difference between array_name and &array_name?

1302


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1945


What does void main return?

1123


How can a program be made to print the name of a source file where an error occurs?

1226


What is the right way to use errno?

1056


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2691


What are the three constants used in c?

995