哈工大(威海)C语言考前复习3.pptVIP

  • 7
  • 0
  • 约1.25万字
  • 约 67页
  • 2018-11-06 发布于江苏
  • 举报
哈工大(威海)C语言考前复习3

Review for exam 转义字符 为了打印特殊字符而提供 \b backspace \n newline \t tab \r carriage return \\ backslash \ double quote \‘ single quote 基本类型 6 (or so) primitive types: float double char short int long 真假判断 在while(x)语句中的x与下面条件表达式等价的是 。 A) x==0 B) x==1 C) x!=1 D) x!=0 溢出Overflow 例如: byte b = 100; b = b * 100; 一个 byte 能存放的最大值 +127 This is called overflow 编译器不做任何提醒! 向下溢出: b -= b*100; 条件表达式 表示条件:axb或xc的C语言表达式是 。 (ax)(xb)||(xc) 短路 int a=1,b=1,c; c=a||--b; printf(“%d,%d”,c,b) 上述程序的打印结果为 Operators Assignment: = Increment (++) and decrement (--) 给整型变量加 1 的四种方法: i = i + 1; i += 1;

文档评论(0)

1亿VIP精品文档

相关文档