题目内容

下列字符串中为合法的字符常量的是( )。

A. n
B. '\n'
C. 110
D. "n"

查看答案
更多问题

下面程序的运行结果是 aabb abc____ 。void main(){ char ch1='a',ch2='b',ch3='c',ch4='\101',ch5='\116';printf("a%cb%c\tab%c\n",ch1,ch2,ch3);printf("\t\b%c %c",ch4,ch5);}

运行下面程序,其输出结果为____ ,该结果说明了什么?void main(){ int iA1,iA2,iA3=258;iA1=97;iA2=98;printf("iA1=%c,iA2=%c,iA3=%c",iA1,iA2,iA3);}

下面程序的运行结果是____ 。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);}

答案查题题库