wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In a stack, which instruction are used

A
PUSH
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
POP
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
PUSH, POP
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
PUSH, OUT
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B PUSH, POP

In a stack, push, pop instruction are used.

Stack is amount of program (RAM) memory normally allocated at the top of CPU memory heap and grow (at push instruction the stack pointer is decreased) in opposite direction. A standard term for inserting into stack is push and for remove from stack is pop.

A stack is an abstract data type that serves as a collection of elements, with two principal operations: push, which adds an element to the collection. pop, which removes the most recently added element that was not yet removed.


933767_919986_ans_21fc61389675488ea3dfc8ce12588fc5.png

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Properties of Multiplication of Integers
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon