Hey guys, it is my first post in here, I am starting my journey with c++ and have encountered some if statement that I do not understand, the thing is '>>=',
I know it works with bytes of number and I know what does >> mean but what >>= mean?
Do you mean >= ?


if (a>=b)//statement

is a larger or equal then/to b?

if its true then do the statement

x>>=y is equivalent to x=x>>y.
No, no I mean >>= the if looks like if ( b >>= 1 )

thanks helios
Last edited on
>> is the bitwise shift operator along with <<. They are also overloaded for stream objects for input and output operators. I've never seen it used like you are indicatiing ohc.
Topic archived. No new replies allowed.