Procedure createQ(Q)
The above procedure creates an empty queue. Variable front and rear set to value – 1.
C code is given below
void create Q (queue *Q)
{
Q ® front = – 1
Q ® rear = – 1;
}
No comments:
Post a Comment