Vidyalelo
C++ Programming · Q58

Standard Template Library (STL) in C++

Programming · C++ Programming · question 58

Q58

What will be the output of the following C++ code? #include #include #include using namespace std; int main() queue q; q.push('a'); q.push('b'); q.push('c'); cout << q.front(); q.pop(); cout << q.front(); q.pop(); cout << q.front(); q.pop();

A.
ab
B.
abc
Answer
C.
a
D.
error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board