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

Is main() is used in the program,,see below example?

void main()
{
int i;
for(i=0;i<10;i++)
main();
}

Then what is the output of the program?

Answer Posted / anbu sankar

Always i value is zero.
This program comes under recusive concept.
In stack memory,always remaining statement address [(i.e)
after main]is stored.
so at one stage stack is filled by addresses. so
Segmentation falut...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static variable in c?

1092


Explain heap and queue.

1094


For what purpose null pointer used?

1085


What are the differences between Structures and Arrays?

1216


Explain how do you list files in a directory?

1076


What is an endless loop?

1279


What is 1f in c?

2665


What are register variables? What are the advantage of using register variables?

1191


What is a floating point in c?

1075


Explain what is the benefit of using enum to declare a constant?

1095


Explain how can I open a file so that other programs can update it at the same time?

1121


How is a pointer variable declared?

1102


What is the hardest programming language?

1158


What is switch in c?

1112


What is pragma in c?

1219