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

Do you know the difference between exit() and _exit() function in c?

1074


What are the __date__ and __time__ preprocessor commands?

1129


What is 02d in c?

1083


What are local static variables? How can you use them?

1161


What is the difference between array_name and &array_name?

1316


Why is structure important for a child?

1109


Can we declare variable anywhere in c?

987


Hai what is the different types of versions and their differences

1953


What is volatile keyword in c?

1047


What are formal parameters?

1132


What is the difference between %d and %i?

1111


What is a #include preprocessor?

1168


What is operator promotion?

1088


Did c have any year 2000 problems?

1121


Explain how can I prevent another program from modifying part of a file that I am modifying?

1103