+ 5
What is this operator <<= in C++
2 Antworten
+ 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.
+ 3
therefore >>= is right and a>>=1 would be 7 if a was 14 right?