学习使用按位取反.
#include <stdio.h>
int main()
{??????? /*學習使用按位取反
??????????? 程序分析:0~=1 1~=0*/
??? unsigned int a, b;
??? a=3;
??? b=~a;
??? printf("\40:the a's 1 complement(decimal)is %d\n",b);
??? a=~b;
??? printf("\40:the a's 1 complement(hexidecimal)is %d\n",a);
??? getch();
??? return 0;
}
轉載于:https://www.cnblogs.com/wangjingyuwhy/archive/2013/03/03/2941847.html
總結
- 上一篇: 安装PyQt5安装包或者其他操作,报错F
- 下一篇: leetCode 53. maximum