1.

What is the output of this program?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
priority_queue<int> QueueData;
QueueData.push(12);
QueueData.push(25);
QueueData.push(13);
cout << QueueData.top() << endl;
return 0;
}

A. 12
B. 25
C. 13
D. All of above
E. None of these
Answer» C. 13


Discussion

No Comment Found

Related MCQs