Other than shifting bits to the left, what is the << oprator used for ?

Advertisement

  • shifting characters to the left in a string.
  • inserting characters into an output stream like std::cout.
  • comparing floating point numbers as less-than.
  • assigning a variable to a reference.

Leave a Comment