Professional Documents
Culture Documents
1.stack: LIFO (Last in First Out)
1.stack: LIFO (Last in First Out)
1.stack: LIFO (Last in First Out)
Stack
pop(stack,top,value);
int value;
cout<<value;
}
1.Stack: implement using array
A circular queue
2.QUEUE: implement using array
#define MAX 10
void main()
{
int queue[MAX];
int bottom,top,count=0;
bottom=top=-1;
enqueue(queue,count,top, 100 );
int value;
dequeue(queue,count,bottom,top,value);
}
2.QUEUE: implement using array