Vidyalelo
C++ Programming · Q44

Classes and Objects in C++

Programming · C++ Programming · question 44

Q44

What will be the output of the following C++ code? #include using namespace std; ostream & operator<<(ostream & i, int n) return i; int main() cout << 5 << endl; cin.get(); return 0;

A.
5
B.
6
C.
error
Answer
D.
runtime error

Answer: Option C

Solution

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