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

Complete the sentence with the correct possessive adjective: ________ sac est sur la chaise? (your informal) - Ton - Sa - Son - Ta
John leaves work at 5pm on Monday and gets stuck in traffic. The next day, John leaves work at 5pm and gets stuck in traffic again. He concludes that leaving at
If the cones below are similar, what is the ratio of the surface area of Cone A to the surface area of Cone B? 21 in 35 in Cone B Cone A​
what is the best trip you have ever been on
Julius Caesar is a play by Willaim Shakespear depicting the death of a great ruler in history. What time period did Julius Caesar live? 43 BC 100 AD 1500 AD
Can someone plz help me if u can’t see zoom in plz help me
Who is the 8,932nd president of the united states?
Hērē ÿōū gō frēē pōīñtš! Hāvē ā grēāt dāÿ!
Questions: 1. How much money does Jessica make yearly and monthly?
When are chromosome mostly condensed