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 is the data structures used to perform recursion?

Answer Posted / phool chand

Stack. Because of its LIFO (Last In First Out) property it remembers its ‘caller’ so knows whom to return when the function has to return. Recursion makes use of system stack for storing the return addresses of the function calls. Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are linked lists useful?

895


What is a simple graph?

954


What is the minimum number of queues that can be used to implement a priority queue?

945


How many null values are allowed in a set?

881


Why do we use arrays?

901


Define adjacent nodes?

1038


which is the simplest file structure? (Sequential, indexed, random)

1263


How does variable declaration affect memory allocation?

1752


Can treemap have null values?

892


Which is better hashset or treeset?

1003


What is the use of sorting?

950


Is priority queue sorted?

954


What is perfect binary tree?

831


What is difference between an Array and ArrayList?

1001


How do you get placements?

845