is the insertion tag(<<) in c++ A stream or just cout | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

is the insertion tag(<<) in c++ A stream or just cout

25th May 2020, 12:02 PM
Emmanuel Abraham
1 Answer
+ 2
"<<" is an overloaded operator, which is overloaded to be a put() function. cout << "x = "; is the same as put(cout,"x = "); that's why here👉(https://www.sololearn.com/discuss/2312863/?ref=app) when you were using it inside cin, then it was same as put(cin,"\n") which is not possible.
25th May 2020, 12:17 PM
Arsenic
Arsenic - avatar