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

Are negative numbers true in c?

1112


Is c a great language, or what?

1166


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

2161


What is methods in c?

1143


What is register variable in c language?

1065


Can i use “int” data type to store the value 32768? Why?

1237


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1055


Difference between exit() and _exit() function?

1179


Write a program to show the change in position of a cursor using c

1124


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4337


What is the difference between int main and void main in c?

1238


What are the __date__ and __time__ preprocessor commands?

1180


what value is returned to operating system after program execution?

2181


Explain what is page thrashing?

1160


How are variables declared in c?

1151