PUSH & POP operation - Stack pointer execution
Q. What is the status of stack pointer for the execution of PUSH and POP operations?- Published on 09 Nov 15a. It gets post-decremented for PUSH & pre-incremented for POP
b. It gets pre-incremented for PUSH & post-decremented for POP
c. It gets pre-incremented for PUSH as well as POP
d. It gets post-decremented for PUSH as well as POP
ANSWER: It gets pre-incremented for PUSH & post-decremented for POP