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?



What is the data structures used to perform recursion?..

Answer / 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

More Data Structures Interview Questions

What is difference between hashmap and treemap?

0 Answers  


What is minimum depth of binary tree?

0 Answers  


What is an iterative algorithm?

0 Answers  


What are the data structures used in RDBMS, Network data model & Hierarchical data model?

1 Answers   Accenture,


What are the applications of stack?

0 Answers  


Can you dynamically allocate arrays in expanded memory?

0 Answers  


What is stack in data structure with the example?

0 Answers  


Why do we need arrays if all the operations that are performed on arrays can be performed on arraylist?

0 Answers  


Differentiate between singly and doubly linked lists?

0 Answers  


What is sorting an array?

0 Answers  


What is a dequeue?

0 Answers  


How will you represent a linked list in a graphical view?

0 Answers  


Categories