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

Why were the steel plow in the mechanical Reaper important inventions?
The square of a certain negative number is equal to 5 more than one half of the number what is the number
how many year and months did it take to build blackpool tower england
The school concert raised $1360 from the sale of 400 tickets. If adult tickets cost $5 and student tickets $3, how many student tickets were sold?How many stude
Two famous Elizabeth Blackadder paintings ?
how do you say I want a bowl of soup in spanish
Three numbers are in the ratio 6:3:1, and the sum of these numbers is 420. If the first number is reduced by 50%, and the second number is increased by 42, and
what types of units are used to describe area?
How do you solve x²-10x+9=0 by completing the square?
Who do you think snitched on Anne Frank and her family?