Machine-translated by Google. Questions are authored in English.
Top

Discussion

Stack has applications in :

  • A.Function calls
  • B.Evaluation of arithmetic expressions
  • C.Large number arithmetic
  • D.All of the above

Answer: D

Stacks are used in all of the above.

Function calls are managed on a call stack that holds return addresses, parameters and local variables. Arithmetic expressions are converted from infix to postfix and evaluated with a stack. In large number arithmetic, digits can be pushed onto stacks so that addition proceeds from the least significant digit with carries.

Since each listed use is a genuine stack application, no single option is complete on its own.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.