While implementing a stack on a register stack, the stack pointer register is:

2018

While implementing a stack on a register stack, the stack pointer register is:

  1. A.

    Incremented first during push operation

  2. B.

    Decremented first during push operation

  3. C.

    Incremented first during pop operation

  4. D.

    Decremented first during pop operation

Attempted by 633 students.

Show answer & explanation

Correct answer: B

Key points: The register stack grows downward: addresses decrease as new items are pushed.

Explore the full course: Up Lt Grade Assistant Teacher 2025