Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> #include <stack> using namespace std; int main () { stack<int> mystack; mystack.push(10); mystack.push(20); mystack.top() -= 5; cout << mystack.top() << endl; return 0; }
More Computer Questions
What is the time complexity for increasing priority of key in a maximum ternary heap of n elements?
Apache Hama provides complete clone of . . . . . . . .
Which of the following is the correct way of implementing an interface salary by class manager?
Accessibility modifier defined in a class are?
Consider the following statement var Set = sets . Set; var s = new Set ( 1 , 2 , 3 ) ; What could be the efficiency quotient of the above two statements ?