c语言经典00例.docVIP

  • 4
  • 0
  • 约2.24万字
  • 约 30页
  • 2016-12-03 发布于河南
  • 举报
c语言经典00例

c语言经典100例 出处:单片机商城 发布日期:2005-7-8 9:28:00 浏览次数:309 【程序51】 题目:学习使用按位与 。    1.程序分析:00=0; 01=0; 10=0; 11=1 2.程序源代码: #include stdio.h main() { int a,b; a=077; b=a3; 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); } ======================================================

文档评论(0)

1亿VIP精品文档

相关文档