有以下程序:main(){ union{char ch[2];im d;d一0x4321;printf(”%x,%x\n”,s.ch[O],s.ch[1]);)S;在16位编译系统上,程序执行后的输出结果是( )。 21,43。 43,21。 43,00。 21,00。
若有以下的说明和语句,则在执行for语句后,*(*(pt+1)+2)表示的数组元素是( )。im t[3][3],*pt[3],k;for(k=0;k<3;k++)pt[k]-&t[k][o]; t[2]Eo]。 t[2][2]。 tell[2]。 t[2][1]。
有以下程序:main(){int a=0,b=0;a=10; /*给a赋值b=20; 给b赋值 */printf(”a+b=%d\n”,a+b);//输出计算机结果)程序运行后的输出结果是( )。 a+b=10。 a+b=30。 30。 出错。
有以下程序:#include<stdi0.h>main(){ int x,i;for(i=1:i<=100:i++){ x=i:if(++x$2==0)if(++x%3==0)if(++x%7==0)printf(“%d”,x);printf(”\n”);程序的输出结果是( )。 2870。 4284。 2668。 3981。
下列变量声明合法的是( )。 short a=1.4e-1;。 double b=1+3e2.8;。 10ng do=0xfdaL;。 float 2_aaa=1e-3;。
下列叙述中正确的是( )。