mcait8189 mcait8189
  • 13-07-2019
  • Computers and Technology
contestada

The operation ____ is used to remove the top element from the stack.

A.
pop

B.
push

C.
peek

Respuesta :

PhantomWisdom PhantomWisdom
  • 18-07-2019

Answer:

pop

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.

Answer Link

Otras preguntas

Is musical theatre a form of antirealist theatre similar to expressionism and theatre of the absurd? a. yes, because major writers of musicals produced manifest
define the term transport and explain the necessity of transport in plants and animals
What is the length of DE?
Can be harmful to your health and lead to problems such as depression if we don’t learn how to handle properly
The spinner is equally likely to land on any of the six sections. What is the probability that the spinner will land on a number greater than 4 or on a shaded s
Grandma Gertrude gave 13 pieces of jewelry and Grandma Fien gave y pieces of jewelry to the Carlson sisters to divide evenly among themselves. There are 5 Carls
An electric field of 260 000 n/c points due west at a certain spot. what are the magnitude and direction of the force that acts on a charge of #7.0 !c at this s
Solve: 1/8-6x(less than or equal to) 4/9(9+27x)
Explain how the graph of y=|x+1|-2 will differ from the graph of y=|x|.
I need help on this question