Question: QUESTION 2) The following is an empty Queue with Circular Array implementation (max size N=8). Initial index values: First =-1, Last = -1 2
QUESTION 2) The following is an empty Queue with Circular Array implementation (max size N=8). Initial index values: First =-1, Last = -1 2 a) Execute all commands shown below, then draw the final diagram of the Queue. Also write final values of index variables. 3 enqueue(30); enqueue(60); enqueue(10); dequeue(); enqueue(40); dequeue();enqueue(20); enqueue(50); dequeue();dequeue();enqueue(70); enqueue(50); enqueue(10); enqueue(20); b) Write the following C function: void RemovaAll (); Function should remove all elements from queue, by looping thru between First and Last indices and calling the dequeue function. The removed data elements should be displayed on screen. 5
Step by Step Solution
3.46 Rating (146 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
