+ 2

what is the meaning of <<

27th Oct 2016, 6:48 AM
DiegoKing
3 ответов
+ 7
The "<<" operator has different meanings in different contexts. It's used as the "insert" operator for cout: cout << "hello"; But it's also used as the "bitwise left shift" operator: integer x = 1; x = x << 3; // 1 becomes 8 because the bits have been shifted 3 times left.
27th Oct 2016, 11:56 AM
Neen
Neen - avatar
+ 1
It's the operator to send something to a stream object.
27th Oct 2016, 8:58 AM
Zen
Zen - avatar
- 1
output in your screen
27th Oct 2016, 8:02 AM
Muhd Adam Muiz Bin Yusoff
Muhd Adam Muiz Bin Yusoff - avatar