Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

C programming quick question !

OpenStudy (anonymous):

what does this expression: b>>=6;

OpenStudy (anonymous):

@ganeshie8

ganeshie8 (ganeshie8):

\(b>>6\) shifts the bits of \(b\) to right by \(6\) places run it and see https://ideone.com/rwlmcM

OpenStudy (anonymous):

watch it carefully @ganeshie8 I said b>>=6 not b>>6

ganeshie8 (ganeshie8):

\[b>>=6 \] is shorthand for \[b = b>>6\]

ganeshie8 (ganeshie8):

\(b>>6\) returns the result after shifting the value of \(b\) to right by \(6\) positions but doesn't change \(b\)

ganeshie8 (ganeshie8):

https://ideone.com/ElFi9H

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!