Vidyalelo
C++ Programming · Q89

C++ miscellaneous

Programming · C++ Programming · question 89

Q89

What will be the output of the following C++ code? #include #include using namespace std; int main () vector myvector; myvector.push_back(78); myvector.push_back(16); myvector.front() += myvector.back(); cout << myvector.front() << ' '; return 0;

A.
78
B.
16
C.
94
Answer
D.
86

Answer: Option C

Solution

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