1 addqueuehead item adds a queue item pointed to by item


The functions i need help with:

1. addQueue(&head, item) // adds a queue item, pointed to by "item", to the queue pointed to by head.

2. item = DelQueue(&head) // deletes an item from head and returns a pointer to the deleted item

3. rotateQ(&head) // Moves the header pointer to the next element in the queue. This is equivalent to AddQ(&head, DeleteQ(&head)), but is simpler to use and more efficient to implement.

It would help if you could write comments for the function so i can easily walk through a better understand what is going on. thank in advance

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: 1 addqueuehead item adds a queue item pointed to by item
Reference No:- TGS02851062

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)