What is the function ofs the program counter register?
AIt holds the operand address
BIt holds the address of current instruction
CIt holds the address of previous instruction
DIt holds the address of next instruction
Show answerHide answer
Correct answer: (D) It holds the address of next instruction
Explanation
The program counter always holds the address of the next instruction to be fetched; it is incremented (or loaded with a branch target) after each fetch.
From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021