Say I have a function like this:
inline int shift( int what, int bitCount ) { return what >> bitCount; }
It will be called from diffe
According to K&R "The result is undefined if the right operand is negative, or greater than or equal to the number of bits in the left expression's type." (A.7.8) Therefore >> 0 is the identity right shift and perfectly legal.
>> 0