void main() { int iX,iY,iM,iN; iX=10;iY=20; iM=iX++;iN=++iY; printf("iX=%d,iY=%d,iM=%d,iN=%d",iX,iY,iM,iN); iM=iX– –;iN=– –iY; printf("iX=%d,iY=%d,iM=%d,iN=%d",iX,iY,iM,iN); }
举一反三
- #include "stdio.h" void main() { int iX,iY,iM,iN; iX=10;iY=20; iM=iX++;iN=iY++; printf("iX=%d,iY=%d,iM=%d,iN=%d",iX,iY,iM,iN); iM=iX--;iN=--iY; printf("iX=%d,iY=%d,iM=%d,iN=%d",iX,iY,iM,iN); }
- 下面程序的运行结果是 iX=80,iY=25____。void main(){ int iX,iY;iX=80;iY=25;printf("iX=%d,iY=%d\n",iX,iY);printf("iX/iY=%d,iX%iY=%d\n",iX/iY,iX%iY);}
- 设iX=2,iY=3, ch='a',则表达式iZ = (iX || iY)&&(ch>'A')的值是1
- 图示正方形对x,y轴的惯性矩阵和惯性积分别为Ix,Iy和Ixy,下列结论中哪些是正确的?( ) (1)Ix=Iy; (2)Ix’=Iy’; (3)Ix=Ix’; (4)Ixy=Ix’y’http://image.zhihuishu.com/zhs/onlineexam/ueditor/201808/06df735ae8734b3f995cf9274f091650.png
- iX=2,iY=3,ch='a',表达式iZ=(iX||iY)&&(ch>'A')的值是。 A: true B: false C: 0 D: 1