queue_overwritePush()
correctly. If the queue is full, pop an element and push the new element on the queue. If it is not full, just push the new value.queue_init()
, e.g., a queue of size 4 must be allocated with 5 locations. the code that I provide does this. However, this does not apply to students who are using elementCount to determine full/empty.