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 are the advantages of Macro over function?

2005


Is that possible to add pointers to each other?

1369


What is a dynamic array in c?

1155


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2578


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1055


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2689


What the advantages of using Unions?

1229


Is a house a shell structure?

1160


How do you define structure?

1041


Is c compiled or interpreted?

1192


What is huge pointer in c?

1082


where are auto variables stored? What are the characteristics of an auto variable?

1067


How can I split up a string into whitespace-separated fields?

1055


What is the use of header files?

1105


What is the right way to use errno?

1049