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