in vedio tutorial teaches us how stack is full or empty. user uses push command for full the box and uses pop for empty the box (array). this is based on LIFO. example- void push(int element) { if(top==max-1) printf("stack is overflow"); return; }
Note: only a member of this blog may post a comment.
in vedio tutorial teaches us how stack is full or empty. user uses push command for full the box and uses pop for empty the box (array). this is based on LIFO.
ReplyDeleteexample- void push(int element)
{ if(top==max-1)
printf("stack is overflow");
return; }