Declaration of Stack - Initialization process converting recursive into non

Q.  Which step is associated with an initialization process while converting a recursive into non - recursive algorithm?

- Published on 28 Aug 15

a. Declaration of Stack
b. Pushing of all local variables and parameters into the stack
c. Assigning the values of formal parameters
d. Popping of return address

ANSWER: Declaration of Stack
 

    Discussion

  • Nirja Shah   -Posted on 18 Nov 15
    Declaration of Stack is associated with an initialization process while converting a recursive into non - recursive algorithm. If a function invokes or called itself, then it is called as recursion. It is best used when a large task can be broken down into a repetitive smaller task.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)