Pop
// remove data from the top of the stack
int pop()
{
top--;
if (top < 0)
{
printf(“The stack is empty\n”);
return 0;
}
return(stack[top]);
}
Previous slide
Next slide
Back to first slide
View graphic version