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

Put brackets in the expression below so that it's value is 45.024. 1.6 + 3.8 * 2.4 *4.2 (*= times )
What are three interesting facts about Susan B. Anthony's childhood ?
Explain how engineers and scientists may work together to produce a protein in the lab.
What are three interesting facts about Susan B. Anthony's childhood ?
How is carbon dioxide obtained?
How long did mummification go for poor Egyptians?
The diagram shows a patio in the shape of a rectangle. The patio is 3.6m long and 3m wide. Mathew is going to cover the patio with paving slabs. Each paving sla
whats Henry Hudson interesting facts?
What are the origins of prevailing ideas about natural, ideal, and deviant bodies in sports and in society?
In a sale, normal prices are reduced by 12% The sale price of a digital camera is £132.88 Work out the normal price of the digital camera (3marks)