2015.01.16 续

1.注释 :#if 0

               #endif

spacer.gif

2.

spacer.gif

3.bool 类型

spacer.gif

4.char类型

spacer.gif

spacer.gif

spacer.gif

5.

short   2个字节

short(signed short)  -32768~32767

unsigned short  0~65535

6. 

int  4个字节

7. 

 long 4个字节

8.

浮点类型:

float  4个字节

double 8个字节

9.

spacer.gif

10.

spacer.gif

11.

spacer.gif

12.

spacer.gif

spacer.gif

spacer.gif

预处理之后:

spacer.gif

13.练习

int n;

scanf("%d",&n);

spacer.gif

spacer.gif

注:scanf 中不能加“\n”。

14.

对比寄存器与AUTO的执行时间

spacer.gif

spacer.gif

15.

spacer.gif

spacer.gif

分屏操作:在一个打开文件下,底行模式下输入   vsp   文件名(横向)   

        sp 文件名(竖向)

16.

 static作用:

spacer.gif

spacer.gif

17.强制类型转换

spacer.gif

spacer.gif

spacer.gif

18.

spacer.gif

spacer.gif

spacer.gif

    m/n  可以为小数。

19.位运算

spacer.gif

%#x 表示打印16进制

 

20.三目运算

spacer.gif

21.sizeof

spacer.gif

注:和系统有关,64和32位的系统不同。

2运算符&表达式&数据类型.ppt

C语言优先级.docx

base_2.rar


你可能感兴趣的:(double,寄存器)