In C++, cout is an object of which class?
-
A
iostream
-
B
ostream
Correct answer
-
C
istream
-
D
fstream
Correct answer
B. ostream
10 views
Explanation
cout is a predefined object of class ostream that writes to standard output.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ