What is stack pointer? Define the two main operation of a stack with their program?
Answers
Answered by
1
Answer:
The stack pointer points to the current topmost datum on the stack. A push operation decrements the pointer and copies the data to the stack; a pop operation copies data from the stack and then increments the pointer.
Answered by
1
Explanation:
The stack pointer points to the current topmost datum on the stack. A push operation decrements the pointer and copies the data to the stack; a pop operation copies data from the stack and then increments the pointer
hope it will help you
Similar questions