Posts

Showing posts from September, 2024

Stack using Arrays and Linked List

  a) Implementation of Stack Operations using Arrays. b) Implementation of Stack Operations using Linked List. a) Implementation of Stack Operations using Arrays. Source Code:-   #include<stdio.h> #include<stdlib.h> #define SIZE 5 void push(); void pop(); void peep(); void display(); int stack[10],top=-1,ele; int main() {                  int ch;                  printf("\n 1.push\n 2.pop\n 3.peep\n 4.display");                  while(1)                  {                    printf("\nmenu");     ...