//学习使用按位或|

//学习使用按位或|
//程序分析0|0=0,0|1=1,1|0,1|1=1
#include<stdio.h>
main()
{int a,b;
a=077;b=a|3;
printf("\40:The a&b(decimal)is %d\n",b);
b|=7;
printf("\40:The a&b(decimal)is %d\n",b);
return 0;
}

猜你喜欢

转载自blog.csdn.net/singularityfisher/article/details/80501864