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

How main function is called in c?

1072


How to declare pointer variables?

1165


What tq means in chat?

1063


Explain what header files do I need in order to define the standard library functions I use?

1115


Explain how do you generate random numbers in c?

1043


How the c program is executed?

1076


What should malloc(0) do?

1058


What is a pointer in c plus plus?

1218


Explain what does the format %10.2 mean when included in a printf statement?

1290


Write a program to print all permutations of a given string.

1127


Are there constructors in c?

970


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1893


Is javascript based on c?

998


How do you determine a file’s attributes?

1015


Where static variables are stored in c?

1041