+ 5

What is this operator <<= in C++

10th Apr 2017, 11:30 AM
Anmar Fadel
Anmar Fadel - avatar
2 odpowiedzi
+ 6
@Anmar Fadel, think of it like this, for each one you shift you are multiplying or dividing by 2^n where n is the number of shifts you are making.
10th Apr 2017, 8:28 PM
SoraKatadzuma
SoraKatadzuma - avatar
+ 3
therefore >>= is right and a>>=1 would be 7 if a was 14 right?
10th Apr 2017, 7:57 PM
Anmar Fadel
Anmar Fadel - avatar