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 below code?
main()
{
static in a=5;
printf("%3d",a--);
if(a)
main();
}

Answer Posted / amol subhash kumbhar

Output is:- 5 4 3 2 1 (This Manner)
In main()
Static is the Preserves Keyword Used to Statically allocate
the memory allocation
%3d means the 3 space are allocate in the output like as 5
4 3 2 1
main() :- main function called in main function means
recursion is applied

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how are 16- and 32-bit numbers stored?

1246


write a progrmm in c language take user interface generate table using for loop?

2040


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2163


What 'lex' does?

1155


Why can arithmetic operations not be performed on void pointers?

1021


define string ?

1090


what are the advantages of a macro over a function?

1134


List some of the static data structures in C?

1183


What is the correct declaration of main?

1198


What is the condition that is applied with ?: Operator?

1119


Explain how can you avoid including a header more than once?

1075


how could explain about job profile

1906


What is modifier & how many types of modifiers available in c?

1014


Subtract Two Number Without Using Subtraction Operator

828


Explain spaghetti programming?

1234