Which type of machine executes zero-address instructions such as ADD that take both operands from the top of a stack?
Correct answer C. Stack machine
A stack machine's arithmetic instructions name no operands: ADD pops the top two entries and pushes the sum, and only PUSH and POP carry memory addresses. An accumulator machine uses one-address instructions with an implicit accumulator. Load/store machines name registers explicitly, typically with three operands. Expressions map naturally onto a stack through postfix (reverse Polish) order.
Answer checked How we write and check questions
Discussion