Computer Science EngineeringHard

Tail-call optimization primarily saves

  1. A. heap space
  2. B. stack space
  3. C. register count
  4. D. source code size

Correct answer: B. stack space

A tail call can reuse the current stack frame, so recursion depth no longer grows the stack.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic