?
What will be the output of the following C++ code?
What will be the output of the following C++ code?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
queue<int> myqueue;
myqueue.push(12);
myqueue.push(75);
myqueue.back() -= myqueue.front();
cout << myqueue.back() << endl;
return 0;
}
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
queue<int> myqueue;
myqueue.push(12);
myqueue.push(75);
myqueue.back() -= myqueue.front();
cout << myqueue.back() << endl;
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login