1.

What is the output of this program?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
queue<int> QueueData;
QueueData.push(15);
QueueData.push(45);
QueueData.back() -= QueueData.front();
cout << QueueData.back() << endl;
return 0;
}

A. 15
B. 45
C. 30
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs