-
What is the output of this program?
#include <iostream>
#include <list>
#include <queue>
using namespace std;
int main()
{
queue<char> que;
que.push('I');
que.push('L');
que.push('U');
cout << que.front() << " ";
que.pop();
cout << que.front() << " ";
que.pop();
cout << que.front();
que.pop();
}
-
- L U I
- I U L
- L I U
- I L U
- None of these
Correct Option: D
In this program, We used the queue to process the given input.