What is the function of the program counter register?
2021
What is the function of the program counter register?
- A.
It holds the operand address
- B.
It holds the address of current instruction
- C.
It holds the address of previous instruction
- D.
It holds the address of next instruction
Attempted by 295 students.
Show answer & explanation
Correct answer: D
The program counter (PC) is a special register in the CPU that keeps track of the memory address of the next instruction to be executed. After fetching an instruction, the PC is updated to point to the subsequent instruction, enabling sequential execution of program code. This ensures the CPU knows where to fetch the next command in the program flow.