What is the function of the program counter register?

2021

What is the function of the program counter register?

  1. A.

    It holds the operand address

  2. B.

    It holds the address of current instruction

  3. C.

    It holds the address of previous instruction

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs