Assume that x and y are already defined as being of type cha
Assume that x and y are already defined as being of type char . Write a single expression that will return true if the lower four bits of x are NOT the same as the lower four bits of y. [Note that this compiler doesn\'t accept binary constants , so use hexidecimal instead. I.e., for 0b00111111 use 0x3F.]
Solution
This is the experience that will return true if the lower four bits of x are NOT the same as the lower four bits of y.
if ((x & 0x0F) == (y >> 4))
The bitwise right shift will fill from the left with 0\'s
