"a != ~b"
1 #include2 3 4 int main(int argc, char *argv[]) 5 { 6 unsigned char a =0; 7 unsigned char b =0xFF; 8 9 if(a == ~b)10 {11 printf("a == ~b\n");12 }13 else14 {15 printf("a != ~b\n");16 }17 18 printf("~b=%#X\n", ~b);19 }20
本文共 364 字,大约阅读时间需要 1 分钟。
"a != ~b"
1 #include2 3 4 int main(int argc, char *argv[]) 5 { 6 unsigned char a =0; 7 unsigned char b =0xFF; 8 9 if(a == ~b)10 {11 printf("a == ~b\n");12 }13 else14 {15 printf("a != ~b\n");16 }17 18 printf("~b=%#X\n", ~b);19 }20
转载于:https://www.cnblogs.com/skullboyer/p/9209615.html