Important MCQ

The operator used with cout is

Q.The operator used with cout is

A) >>
B) <<
C) #ERROR!
D) #ERROR!
Correct Answer:
Option B
Detailed Explanation:
B) << is correct. cout is an ostream object used for screen output with the insertion operator <<. Quoted text is printed literally, expressions are evaluated, and endl or \n starts a new line.