LogiQuest
Back to STL
12

What will be the output of the program?

#include <iostream>
using namespace std;
#include <queue>
int main() {
    priority_queue<int> pq;
    pq.push(4); pq.push(9); pq.push(1);
    cout << pq.top() << endl;
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.