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

1)what are limitations for recursive function?
2)write a program to read a text file and count the number of characters in the text file

Answer Posted / mubin ahmed shaik

Limitations of Recursive Approach:
1. Recursive solutions may involve extensive overhead because they use function calls. Each function call requires push of return memory address, parameters, returned result,etc. and every function return requires that many pops.
2. Each time you call a function you use up some of your memory allocation may be in stack or heap. If there are large number of recursive calls – then you may run out of memory.

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define CONSTANT in C?

1228


What is the use of ?: Operator?

1102


In C language what is a 'dangling pointer'?

1085


What is meant by 'bit masking'?

1350


Explain what are compound statements?

1012


Why is c used in embedded systems?

1087


What is the explanation for prototype function in c?

940


How do c compilers work?

1074


What is logical error?

1086


How can I convert a number to a string?

1117


Why is c called a structured programming language?

1233


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

1254


What is a double c?

947


What is a pointer in c plus plus?

1262


What is the best way of making my program efficient?

988