Computer Science, asked by 123455655444, 1 month ago

What is stack pointer? Define the two main operation of a stack with their program?

Answers

Answered by sateeshhtp
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 kaurashpreet52
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