设iX=2,iY=3, ch='a',则表达式iZ = (iX || iY)&&(ch>'A')的值是1
举一反三
- iX=2,iY=3,ch='a',表达式iZ=(iX||iY)&&(ch>'A')的值是。 A: true B: false C: 0 D: 1
- iX=2,iY=3,ch='a',表达式iZ=(iX||iY)&&(ch>;'A')的值是 A: true B: false C: 0 D: 1
- 下面程序的运行结果是 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);}
- 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); }