Stack in C using Array

Stack in C using Array

Stack is a Linear Data Structure in which operations like Push and Pop are performed. Push : It is used to add elements to the stack(array). Pop : It is used to remove elements from the stack. This is how a Stack looks like. PUSH operation: void push(char x) { if(top==MAX) // MAX is size of array … Continue reading Stack in C using Array

Advertisements
Linked List in C

Linked List in C

Linked List is a data structure which consists of nodes. Nodes makes the list, Nodes are also called as Elements. Each node is made up of two parts, i.e. Data part which stores the values and reference part which points to other nodes OR we can say it contains address of the other nodes. Here … Continue reading Linked List in C