Popstack
Posted by JanWan
Last Updated: March 05, 2012
  652

# include <stdio.h>
# include <ctype.h>
# include <conio.h>
# define MINISIZE 100

int popstack(int stack[], int numbers)
{
int a;
if (numbers<=0)
{
printf("STACK EMPTY");
return 0;
}
else
{
a=stack[numbers];
stack[numbers]=-99;
numbers--;
}
return (a);
}

   
  
 
 
   

 
 
C a the BOSS!!!!
 
good old college days! lol