下载此文档

c语言考试总结知识Clanguagetestsummary.doc


文档分类:IT计算机 | 页数:约10页 举报非法文档有奖
1/10
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/10 下载此文档
文档列表 文档介绍
c语言考试总结知识(C language test summary)
The whole must be clear:
the program structures are three kinds: sequence structure Master the integer is two bytes, the character is a byte, double precision is 4 bytes can be.
escape character test:
In the program int a = 0x6d, is a sixteen hexadecimal number to the variable a the Ox must exist.
In the program int a = 06D is an octal form.
In the escape character, 'm' is legal, 0 cannot be written, and X is a lowercase.
"A" is legitimate, the 0 is not written.
"8" is illegal, because there will be 8.
arithmetic operator priority level:
Some of the same level from left to right, some from right to left.
compulsory type conversion:
Is (int) a int (a), not pay attention to have the type of brackets.
Note (int) (a+b) and (int) a+b difference. The a+b before the transition, after the a transformation and B.
expression test:
Is there must be a numerical expression.
Assignment: the expression values are numerical, the left most a=b=5: the expression is 5, constants can be assigned.
Since, since the reduction expression: if a=5, ++a (for 6), a++ ⑸;
Operation mechanism: ++a is the first variable value plus 1, and then get into numerical variables in a, and then use this
A numerical ++a expression was 6, while the a++ is to use the numerical expression is 5, then the value of a plus 1 to 6,
Put them in the variable a. The ++a and a

c语言考试总结知识Clanguagetestsummary 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数10
  • 收藏数0 收藏
  • 顶次数0
  • 上传人小健
  • 文件大小87 KB
  • 时间2022-05-20