-
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;
}
-
- 15
- 45
- 30
- Compilation Error
- None of these
Correct Option: C
In this program, We used the queue operation and performed the back operation. Because of that operation, We got the output as 30.