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 15

a. 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

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)