T
Tinku
I made a FIFO (queue) through singly link-list, but i am confuse about
naming of these function -
int enqueue(struct queue * , struct queue_node *);
struct queue_node* dequeue(struct queue *);
can i use name "enqueue and dequeue"?
actually these names are related with double-ended queue and my queue
is simple
FIFO. Before using these name i was using "push and pop" but these
words are
also related with stack (LIFO), so i think i should not use these
words in
queue, now what name should I use to my function which pushing into
rear and poping from front. please suggest me.
naming of these function -
int enqueue(struct queue * , struct queue_node *);
struct queue_node* dequeue(struct queue *);
can i use name "enqueue and dequeue"?
actually these names are related with double-ended queue and my queue
is simple
FIFO. Before using these name i was using "push and pop" but these
words are
also related with stack (LIFO), so i think i should not use these
words in
queue, now what name should I use to my function which pushing into
rear and poping from front. please suggest me.