Posts

Showing posts with the label Write a Program in c that implement stack and its operations (push and pop) using Linked list

Write a Program in c that implement stack and its operations (push and pop) using Linked list

/* Write a Program in c that implement stack and its operations (push and pop) using Linked list*/       #include <stdio.h>       #include <stdlib.h>       void push();       void pop();       void display();       struct node        {       int val;       struct node *next;       };       struct node *head;              void main ()       {           int choice=0;              printf("\n*********Stack operations using linked list*********\n");           printf("\n----------------------------------------------\n");         ...