12 lines
267 B
C
12 lines
267 B
C
|
// 请计算, short n = 112;
|
|||
|
// n &= ~(3 << 4);
|
|||
|
// n的结果是多少?
|
|||
|
#include <stdio.h>
|
|||
|
|
|||
|
int main()
|
|||
|
{
|
|||
|
short n = 112;
|
|||
|
n &= ~(3 << 4); // n = n & (~(3 << 4)) = n & (~48) = n & (-49) = n & 65487 = 112 & 65487 = 112
|
|||
|
printf("n = %d\n", n);
|
|||
|
return 0;
|
|||
|
}
|