Multiple choice

The operator << is called the ______________.

  1. extraction operator

  2. insertion operator

  3. get from operator

  4. put to operator

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The << operator is called the 'put to' or insertion operator in C++ stream operations. It directs data to an output stream. Conversely, >> is the 'get from' or extraction operator.