Question
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
int main()
6.
{
7.
queue q;
8.
q.push('a');
9.
q.push('b');
10.
q.push('c');
11.
cout
What is the output of this program?
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
int main()
6.
{
7.
queue q;
8.
q.push('a');
9.
q.push('b');
10.
q.push('c');
11.
cout
Answer: Option B
Was this answer helpful ?
In this program, We used the queue to process the given input.
Output:
$ g++ std1.cpp
$ a.out
abc
Was this answer helpful ?
Submit Solution