題組內容

4. In C language, “&”, “|”, and “~” are bitwise AND, bitwise OR, and one’s complement operators, respectively. Let x be an unsigned int in C.

(b) Write an if-statement that checks whether any of the bits 0, 4, 7 of x is 1 using two of these operators. (10%)