- 3
- 0
- 约1.2万字
- 约 68页
- 2016-11-30 发布于湖北
- 举报
* 综合举例 2 int a=1,b=2,c,d,e; c=(-a++)+(++b); d=(b--)+(++a)-a; e=(a/(++b))-(b/(--a)); 运行结果: a=2; b=3; c=2; d=3; e=0 * 综合举例3 int a=2,b=3,c,d,e,f; c=(a++ = --b); d=(a= = ++b); e=(a-- != b); f=(++ a b--); c=1 a=3 b=2 d=1 a=3 b=3 e=0 a=2 b=3 f=0 a=3 b=2 运行结果 a=3; b=2; c=1; d=1; e=0; f=0 * 综合举例4 int x=4, y=25, z=2; z=(--y/++x)*z--; 运行结果: z=7 * 综合举例5 int x=y=z=0; ++x||++y++z; int x=y=z=0; ++x++y||++z; int x=y=z=0; ++x++y++z; 运行后x,y,z的值分别为: 1 0 0 1 1 0 1 1 1 * 综合举例6 int a=2; char c=’a’; float f=3.0; a+a*6/f+
原创力文档

文档评论(0)