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 meant by operator precedence?

1157


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

1033


How can a program be made to print the line number where an error occurs?

1089


What is a const pointer in c?

1141


How can I implement a delay, or time a users response, with sub-second resolution?

1086


What is the difference between printf and scanf )?

1108


What are the header files used in c language?

1058


Explain how can you tell whether a program was compiled using c versus c++?

1107


Suggesting that there can be 62 seconds in a minute?

1049


What does printf does?

1258


Can math operations be performed on a void pointer?

1058


What is auto keyword in c?

1210


Why do we use pointer to pointer in c?

1091


What are the advantages of using linked list for tree construction?

1104


How do we make a global variable accessible across files? Explain the extern keyword?

1888