In an empty queue, the values of 'front' and 'rear' pointers are ______.
2023
In an empty queue, the values of 'front' and 'rear' pointers are ______.
Answer: B. -1 — In most traditional implementations, in an empty queue the 'front' and 'rear' pointers are set to -1.
- A.
0
- B.
-1
- C.
1
- D.
Null
Attempted by 765 students.
Show answer & explanation
Correct answer: B
In most traditional implementations, in an empty queue the 'front' and 'rear' pointers are set to -1.
Loading lesson…