lwpro2 posted: " i was suprised when 10+(20-10)>>1 give me 10 as a result. turns out the bitwise operator is having even lower precedence than +/- so num1 + (num2 - num1)>>1 is basically equal to `num2>>1` "
|

lwpro2 posted: " i was suprised when 10+(20-10)>>1 give me 10 as a result. turns out the bitwise operator is having even lower precedence than +/- so num1 + (num2 - num1)>>1 is basically equal to `num2>>1` "
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.