write a c program to insert and delete values from stack( to perform pop and push operations) using an array data structure
1 answer:
Answer:
<u>How to implement a stack in C using an array? </u>
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.
You might be interested in
Answer:
i dont know sorry but answer above lol
Explanation:
Answer:
The HTML <h1> to <h6> tag is used to define headings in an HTML document. <h1> defines largest heading and <h6> defines smallest heading.
Explanation:
Answer:
The code is attached.
Explanation:
the function accepts string as a parameter inside fuction there is a caunter variable initialized 0 for every character in the string counter increases by 1 returns final value of i as an integer, which is also the length of the string given
Generation Y are the people age 14-37, which means they are born 1977 - 2000.<span /><span>Tweens are the younger edge of gen Y who have never lived without the internet or easy access to cell phones.</span> <span /><span> </span>
Typical examples of real-time systems include Air Traffic Control Systems, Networked Multimedia Systems, Command Control Systems etc.