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


main()
{
static int ivar=5;
printf("%d",ivar--);
if(ivar)
main();
}

Answers were Sorted based on User's Feedback



main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / amit

In GCC compiler 54321 is the correct answer.

Is This Answer Correct ?    29 Yes 0 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / suresh kallam

4 3 2 1 0

Is This Answer Correct ?    0 Yes 3 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / sindhujah

4

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More C Interview Questions

Explain the use of keyword 'register' with respect to variables.

0 Answers  


Differentiate between Macro and ordinary definition.

0 Answers   Motorola,


what is the difference between char * const and const char *?

2 Answers   TCS,


Is main a keyword in c?

0 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


What is the purpose of 'register' keyword in c language?

0 Answers  


In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?

4 Answers  


What is macro?

5 Answers   IBM,


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table

3 Answers   Value Labs,


what is the main use of c where it can use the c

2 Answers   Infosys,


Categories