amoskimutai392 amoskimutai392
  • 18-04-2021
  • Computers and Technology
contestada

write a c program to insert and delete values from stack( to perform pop and push operations) using an array data structure

Respuesta :

livleon3010 livleon3010
  • 18-04-2021

Answer:

How to implement a stack in C using an array?

A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first).

This abstract data type​ can be implemented in C in multiple ways. One such way is by using an array.

​Pro of using an array:

No extra memory required to store the pointers.

Con of using an array:

The size of the stack is pre-set so it cannot increase or decrease.

Ver imagen livleon3010
Ver imagen livleon3010
Answer Link

Otras preguntas

Johannesburg is is 3/5 as tall as his sister. Johannesburg is 90cm tall. How tall is his sister
What is an organism? pls send me the answer fast​
A tree casts a shadow of 45 feet. If the angle of elevation to the top of the tree is 50º, how tall is the tree?
What are three examples of committees in the General Assembly?
Can someone answer this ASAP? NO IMAGE EXAMPLES PLEASE I CANT SEE THEM
pls help if you know how to answer it​
Which is an example of a cognitive milestone?A. Climbing stairs holding onto a railB. Controlling a spoon while eatingC. Stacking rings by sizeD. Experiencing r
An ice wedge shattering a slab of shale a Chemical Change b Physical Change
Read the passage. Then answer the question. " Rescue Mission". Question 1) How does the literary point of view in " The Rescue Mission" affect the reader's unde
What is the density of a substance that has a volume of 14 milliliters and a mass of 13.2 grams