FireStorm5103 FireStorm5103
  • 03-07-2021
  • Computers and Technology
contestada

What variable(s) is/are used in stack to keep track the position where a new item to be inserted or an item to be deleted from the stack

Respuesta :

tallinn tallinn
  • 05-07-2021

Answer:

Hence the answer is top and peek.

Explanation:

In a stack, we insert and delete an item from the top of the stack. So we use variables top, peek to stay track of the position.

The insertion operation is understood as push and deletion operation is understood as entering stack.

Hence the answer is top and peek.

Ver imagen tallinn
Answer Link

Otras preguntas

Purchasing the right to use a company's trademark and copyrighted materials is known as _________
Indirect persuasion in advertising: how consumers process metaphors presented in pictures and words
Which line in this excerpt from Shakespeare’s Hamlet contains an element of foreshadowing?
What might be some possible problems that the newly freed slaves in the south might face
Each of the protein chains are conjugated to a nonprotein ____________ group.
Jamie is constantly saying, i have no control over my emotions, and cannot help feeling certain feelings. this exemplifies _____.
What was Ji-li’s reaction to her upcoming audition for the Liberation Army dance troupe?
do you think people fleeing to the united states for safety in the 1880’s felt affection for their government
What word would fit in this sentence Always scorning people and her food princess the cat is know for being blank A-cunning B-haughty C-lair
Which of the following is a sign of a heart attack? A sudden sense of well-being Pressure or pain in the center of the chest Sweating B and C