Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> #include <queue> using namespace std; int main () { priority_queue<int> mypq; mypq.push(10); mypq.push(20); mypq.push(15); cout << mypq.top() << endl; return 0; }

Select the correct option to test your answer:

More Computer Questions

When we have red-black trees and AVL trees that can perform most of operations in logarithmic times, then what is the need for splay trees? In C, what is the purpose of the 'calloc' function? In Pandas, which method is used to pivot data from long to wide format, creating a new DataFrame? What does the term "Combiner" represent in the context of Hadoop I/O? The 'C' in the ACID property of transactions is . . . . . . . .