engineering computer science MCQ #219

In a CPU, what is the purpose of the stack pointer?

engineering computer science MCQ #219

  1. Question 1

    Q1. In a CPU, what is the purpose of the stack pointer?

    • A) To store the address of the top of the stack
    • B) To store the current instruction
    • C) To store the result of an instruction
    • D) To store the flags

    Answer: To store the address of the top of the stack

    Explanation: The stack pointer stores the address of the top of the stack, allowing the CPU to manage the stack and perform push and pop operations.