Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Stack Push

int push(int data) {

   if(!isfull()) {
      top = top + 1;   
      stack[top] = data;
   } else {
      printf("Could not insert data, Stack is full.
");
   }
}
Source by www.collegenote.net #
 
PREVIOUS NEXT
Tagged: #Stack #Push
ADD COMMENT
Topic
Name
5+5 =