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 / satyabrata nayak

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 ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a MAC Address?

1123


What are compound statements?

1243


What is strcmp in c?

1217


What language is c written?

1100


how to find anagram without using string functions using only loops in c programming

3239


I have a varargs function which accepts a float parameter?

1099


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1173


When is a null pointer used?

1170


Calculate 1*2*3*____*n using recursive function??

2099


c program to compute AREA under integral

2467


given post order,in order construct the corresponding binary tree

2854


What is a string?

1171


What are different types of variables in c?

1126


Where in memory are my variables stored?

1247


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1213