Advertisement
Aminpro

[ECP 1026]Push OR Pop Usage in MAIN [Pre-Code]

Feb 3rd, 2013
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. //https://www.facebook.com/AminproPastebin
  2.  
  3. // To Push
  4.  
  5.     while(isspace(value=getchar()));
  6.     break;
  7. // To POP
  8.  
  9.     if(empty(head, tail))
  10.         printf("Stack is empty");
  11.     else
  12.         Value = pop(head);
  13.     // then if you want to print the popped
  14.  
  15.     printf("'%c' Popped\n", value);
  16.  
  17. //Refer to previous paste for the function definitions. (https://pastebin.com/FQh6Ru5j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement