Stack consists of?

stack

A. ROM

B. RAM

C. Register

D. CPU

Ans: C. Register



Stack Register in Computer


The computers which use Stack-based CPU Organization are supported a knowledge structure called stack. The stack may be a list of knowledge words. It uses Last In First Out (LIFO) access method which is that the hottest access method in most of the CPU. A register is employed to store the address of the topmost element of the stack which is understood as Stack pointer (SP). during this organisation, ALU operations are performed on stack data. It means both the operands are always required on the stack. After manipulation, the result's placed within the stack.


Post a Comment

0 Comments