#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); }
举一反三
- 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
- 质量为M的小球,自倾角30°的光滑斜面上方h高度自由下落,与斜面发生完全弹性碰撞,则小球对斜面的冲量的大小为______ A: Ix=0,Iy=M B: Ix=M,Iy=0 C: Ix=0,Iy=0 D: Ix=0,Iy=M/2