100k views
3 votes
Which statement must be included in a program in order touse a deque container?

a. #include vector

b. #include

c. #include container

d. #include deque

User Pogibas
by
9.0k points

1 Answer

3 votes

Answer:

d.#include deque

Step-by-step explanation:

We have to include deque library in order to use a deque container and the syntax to include is #include<deque>.Deque is a double ended queue which is a sequence container and allows operations of contraction and expansion on both ends of the queue.Double ended queues are a special case of simple queue since in simple queue the insertion is from rear end and deletion is from front end but in deque insertion and deletion is possible at both ends rear and front.

User Helsont
by
8.9k points