Answers for "Stack POP"

C
0

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.n");
   }
}
Posted by: Guest on January-15-2022

Code answers related to "C"

Browse Popular Code Answers by Language