1.

Consider a standard circular queue ‘q’ implementation (which has same condition for queue full and queue empty) whose size is 11 and the elements of the queue are q[0], q[1], .... q[10]. The front and rear pointers are initialized to point at q[2]. In which position will the ninth element be added ?

A. q[0]
B. q[1]
C. q[9]
D. q[10]
Answer» B. q[1]


Discussion

No Comment Found