Vidyalelo
C++ Programming · Q125

C++ miscellaneous

Programming · C++ Programming · question 125

Q125

What will be the output of the following C++ code? #include #include using namespace std; int main () queue myqueue; myqueue.push(12); myqueue.push(75); myqueue.back() -= myqueue.front(); cout << myqueue.back() << endl; return 0;

A.
12
B.
75
C.
63
Answer
D.
74

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board