What is false about a stack?

2017

What is false about a stack?

  1. A.

    It is used for storing return address when a function is called

  2. B.

    It is used for storing return address when interrupted

  3. C.

    It is used for storing interrupt vector address

  4. D.

    It is used for storing registers that are going to be possibly manipulated in ISR

Attempted by 110 students.

Show answer & explanation

Correct answer: C

A stack stores return addresses and saved registers, but interrupt vector addresses are stored in the interrupt vector table, not on the stack.

Explore the full course: Coding For Placement