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

what are the advantage and disadvantage of recursion

Answer Posted / vadivelt

Recursion will be useful when same kind of job has to be
continued for a finite no input or time.

Eg: calculating series, finding factorial etc..

Disadvantage would be,
1.Hard to analyse or understand the code.
2.If the recursive function is called for infinite no of
times and memory constrains are not taken care, then stack
overflow may occur So system may crash.

Is This Answer Correct ?    52 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of functions in c?

959


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1047


What is signed and unsigned?

1020


When is a “switch” statement preferable over an “if” statement?

1084


what is a function method?give example?

2327


Why void is used in c?

964


Are enumerations really portable?

988


Explain what is a const pointer?

1046


Is there sort function in c?

979


What is pointers in c?

1075


Can you please compare array with pointer?

1047


What is sizeof array in c?

997


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

986


What is page thrashing?

1035


What is the advantage of using #define to declare a constant?

1049