Which operator is commonly used with cout to display output in C++?

Options

  • A. >>
  • B. <<
  • C. ==
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. <<

Detailed Explanation

Answer: (B) <<

The insertion operator (<<) is used with cout to send data to the standard output stream.

Example:

cout << "Hello";

It can also be used to display variables:

int x = 10;
cout << x;

A simple memory trick is: cin uses >> and cout uses <<.