114k views
1 vote
The operation ____ is used to remove the top element from the stack.

A.
pop

B.
push

C.
peek

1 Answer

2 votes

Answer:

pop

Step-by-step explanation:

stack is a data structure perform the operation in specific order. The order stack follow is last in first out (LIFO).

push function is used to insert the element at the top of the stack.

peek is used to retrieve or fetch the element at the top.

pop is used to remove or delete the top element from the stack.

Therefore, the option A is correct.

User Vickrant
by
9.1k points