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

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

what would be output of the above program and justify your
answer?

}

Answer Posted / sri ram

This prog'll not produce any output since the value of i
reduces when it reaches zero if block will not be executed
and the program is terminated....

Is This Answer Correct ?    7 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #pragma statements?

1093


Which are low level languages?

1088


What is the purpose of void in c?

1063


Explain a file operation in C with an example.

1114


What does void main () mean?

1228


Write a program to reverse a given number in c language?

1100


Can we change the value of constant variable in c?

1048


What is meant by type casting?

1050


i got 75% in all semester am i eligible for your company

2217


What is a ternary operator in c?

1114


Why do we use header files in c?

1063


How can this be legal c?

1082


When should volatile modifier be used?

1005


Why c language is called c?

1006


What is operator promotion?

1055