C语言运算符与表达式练习(附答案).docxVIP

  • 94
  • 0
  • 约1.18千字
  • 约 2页
  • 2021-12-03 发布于北京
  • 举报
1、 写出下列各逻辑表达式的值。设,a=3,b=4,c=5。 (1) a+bcb==c 0 (2) a||b+cb-c 1 (3) !(ab)!c||1 1 (4) !(x=a)(y=b)0 0 (5) !(a+b)+c-1b+c/2 1 2、 阅读程序,写出运行结果: #include stdio.h main() { int a=3,b=1, x=2, y=0; printf(%d, %d \n,(ab)(xy) , abxy); printf(%d, %d \n, (y||b)(y||a), y||by||a); printf(%d\n,!a||ab); } 1,1 1,1 1 4、有以

文档评论(0)

1亿VIP精品文档

相关文档