Popstack
Posted by JanWan
Last Updated: March 05, 2012
# 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);
}

Related Content