when adding to the front, shoudn't I move all the queue by adding one index in the front?
and for remiving from the rear I use: *rear = (*rear--)
Type: Posts; User: asem0525
when adding to the front, shoudn't I move all the queue by adding one index in the front?
and for remiving from the rear I use: *rear = (*rear--)
void AddFront(int item, int q[], int MAX, int *front, int *rear)
I've got a double-ended queue and I need to add a new item to the front of the queue and delete an item from the end, using C
thank you
I'm using an array
Hi, can somebody tell me how to add an item to the front of the queue?
thank you
rahmet
Rahmet
4. What is the result of the following code?
x=0;
switch(x)
{
case 1: printf( "One" );
case 0: printf( "Zero" );
case 2: printf( "Hello World" );
}