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
AnswerC.
a
D.
error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board