Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Stack POP

int pop() {
   int data;
	
   if(!isempty()) {
      data = stack[top];
      top = top - 1;   
      return data;
   } else {
      printf("Could not retrieve data, Stack is empty.
");
   }
}
Source by www.collegenote.net #
 
PREVIOUS NEXT
Tagged: #Stack #POP
ADD COMMENT
Topic
Name
3+1 =