stack Technology

How to Represent Stack in C – Data Structure

  • June 22, 2020
  • 0 Comments

The stack provides for the insertion and deletion of items, so that a stack is a dynamic, constantly changing object. Before that, you must know what is data structure? #define MAXSIZE 100struct stack {int items[MAXSIZE];int top;}; Note: If the value of s-top is 4 there are five elements on the stack i.e s.item[0], s.items[1], s.items[2], […]