Which operation adds an element to the rear of a queue?
- A Push
- B Enqueue
- C Dequeue
- D Pop
Explanation
Enqueue inserts an element at the rear (back) of the queue; dequeue removes an element from the front.
Which operation adds an element to the rear of a queue?
Enqueue inserts an element at the rear (back) of the queue; dequeue removes an element from the front.