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

the output will be infinite no. of 5s ..bcoz integer a is
static its value wont b changed ever..

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are file streams?

994


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1241


What is the difference between pure virtual function and virtual function?

1106


What are multibyte characters?

1094


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1982


What are the two types of functions in c?

986


What are the 5 types of inheritance in c ++?

1010


What are the 5 organizational structures?

1006


What is strcmp in c?

1091


What is a floating point in c?

1062


Can you tell me how to check whether a linked list is circular?

1389


What does a pointer variable always consist of?

1085


How was c created?

1031


How do I read the arrow keys? What about function keys?

1063


Are there namespaces in c?

1102