what does the punctuation "<<" mean? I don't exactly know it's function. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what does the punctuation "<<" mean? I don't exactly know it's function.

21st Oct 2016, 1:18 AM
damon1993
damon1993 - avatar
4 Answers
+ 4
"<<" is used with "cout" under <iostream> header, to print something to the screen. :) ex: cout<<"i love programming!"; Result: i love programming!
21st Oct 2016, 1:44 AM
Jared
Jared - avatar
+ 3
Why the downvote? I am right arent i?
24th Oct 2016, 12:41 PM
Jared
Jared - avatar
+ 1
it's called a "put to" operator. it's part of a class that is a part of the c/c++ library. I'm not totally sure but I believe it's part of some stream class of some sort
21st Oct 2016, 5:30 AM
Zeke Williams
Zeke Williams - avatar
+ 1
shift left
21st Oct 2016, 6:54 AM
Gaurav chandra