c语言点点滴滴
位与运算:
|
位取反:
#include <stdio.h>//inverse 翻转;相反;颠倒的//位反运算符void main () { int value = 0xFF; printf("The inverse of int value 0Xff is %X\n", value, ~value); printf("The inverse of %X is %X\n", value, ~value); } |
The inverse of int value 0Xff is FF The inverse of FF is FFFFFF00 |
少有人走过到路