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 a pragma?

1176


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1286


Why does everyone say not to use scanf? What should I use instead?

1469


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3741


What is table lookup in c?

1145


What is the general form of a C program?

1068


What are the difference between a free-standing and a hosted environment?

1342


How can I manipulate strings of multibyte characters?

1156


What is use of #include in c?

1220


Why malloc is faster than calloc?

1121


Why do we need volatile in c?

1228


What is advantage of pointer in c?

1244


What is self-referential structure in c programming?

1278


Explain how many levels deep can include files be nested?

1122


What are dangling pointers? How are dangling pointers different from memory leaks?

1390