include "stdio.h"

#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);
}
-----------------------------------------------------------------------------
【程序52】
题目:学习使用按位或 | 。
1.程序分析:0|0=0; 0|1=1; 1|0=1; 1|1=1            
2.程序源代码:
#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);

}


http://www.qdxw.com.cn/yx/rdms/2134508.html
http://www.changsha.cn/bj/bj/zxzx/2014/0407/541475.html
http://www.fengone.com/bj/jsqy/2014/0407/472685.html
http://www.js0573.com/yx/sjbm/3881415.html
http://www.lfxww.com/2014/shichangshangxun/2014/0407/772772.html
http://www.qdxw.com.cn/yx/rdms/2134662.html
http://www.changsha.cn/bj/yl/xywy/2014/0407/541479.html
http://www.fengone.com/bj/zxzx/2014/0407/472691.html
http://www.js0573.com/yx/sjbm/3881450.html
http://www.lfxww.com/2014/shichangshangxun/2014/0407/772770.html
http://www.lfxww.com/2014/shichangshangxun/2014/0407/773030.html
http://www.yltvb.com/xwbk/jkxx/5320120207.html
http://www.lhrb.com.cn/qyxw/fhrl/5346817754.html
http://www.js0573.com/yx/sjbm/3892176.html
http://www.fengone.com/bj/jsqy/2014/0407/474813.html
http://www.changsha.cn/bj/bj/zxzx/2014/0407/542939.html
http://www.changsha.cn/bj/yl/zxjs/2014/0407/542941.html
http://www.fengone.com/bj/zxzx/2014/0407/474814.html
http://www.fengone.com/bj/zxzx/2014/0407/474815.html
http://zx.zynews.com/hyzx/ttys/5312772111.html
http://www.qdxw.com.cn/yx/rdms/2140385.html
http://www.changsha.cn/bj/yl/xywy/2014/0407/542942.html
http://www.fengone.com/bj/jsqy/2014/0407/474816.html
http://www.js0573.com/yx/sjbm/3892161.html
http://www.lfxww.com/2014/shichangshangxun/2014/0407/773253.html
http://www.js0573.com/yx/sjbm/3892135.html
http://www.js0573.com/yx/sjbm/3892397.html
http://zx.zynews.com/hyzx/ttys/5312966063.html
http://www.yltvb.com/xwbk/jkxx/5320041381.html
http://www.changsha.cn/bj/yl/xywy/2014/0407/542944.html


你可能感兴趣的:(我的博客)