2

How do you pronounce the << operator?

For example it is used in here.

  • I pronounce it just like it's spelled. – Owen Jan 29 '16 at 16:22
2

In the context of iostreams, writers often will refer to << and >> as the “put-to” or "stream insertion" and “get-from” or "stream extraction" operators, respectively* .

If you are using << for output in C++ programming then I would just call it "put-to".

(Otherwise, that would also be used as the bitwise left shift in binary operations, but I doubt that is what you meant)

  • One cannot use << for output in C programming. If you mean C++, say it; this C/C++ thing is a myth that does not exist. – tchrist Aug 3 '13 at 13:07
  • 2
    actually I say to and from backwards to that: "cout << x" would be "cout from x" and "cin >> y" would be "cin into y". I agree about insertion and extraction though. – Kate Gregory Aug 3 '13 at 15:22
2

Just found following in TC++PL 3rd Edition page 25, for your reference.

The << operator (“put to”) is used as an output operator; cout is the standard output stream. The >> operator (“get from”) is used as an input operator; cin is the standard input stream. The type of the righthand operand of >> determines what input is accepted and is the target of the input operation. The \n character at the end of the output string represents a newline.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.