Stack using Arrays
Implement Stack using Arrays: Required Knowledge: C basics, Arrays Program: 1 #include<stdio.h> 2 #define SIZE 10 3 4 void push ( int ); 5 void pop (); 6 void display (); 7 8 int stack [ SIZE ], top = - 1 ; 9 10 void main () 11 { 12 int value , choice ; 13 while ( 1 ) 14 { 15 printf ( "\n\n***** MENU *****\n" ); 16 printf ( "1. Push\n2. Pop\n3. Display\n4. Exit" ); 17 printf ( "\nEnter your choice: " ); 18 scanf ( "%d" ,& choice ); 19 switch ( choice ) 20 { 21 case 1 : 22 printf ( "Enter the value to be insert: " ); 23 scanf ( "%d" ,& value ); 24 push ( value ); 25 break ; 26 case 2 : 27 pop (); 28 break ; 29 case 3 : 30 display (); 31 break ; 32 ca...