已知字符0的ASCII码为十六进制的30,现有程序如下: #include <stdio.h> main() { union{ unsigned char c; unsigned int i[4]; }z; z.i[0]=0x39; z.i[1]=0x36; printf("%c\n",z.c); } 此程序的输出结果是( )。
A.6
B.9
C.0
D.3
第1题:
已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 int main() { union { unsigned char c; unsigned int i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c); return 0; }
第2题:
【填空题】已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 main() { union {unsigned char c; unsignedint i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c);}
第3题:
15、已知字符‘7’的ASCII码值是55,请写出如下程序的输出结果: #include <stdio.h> int main() { char c=‘5’ ; printf(“%d",c+3); }
第4题:
已知字符‘7’的ASCII码值是55,请写出如下程序的输出结果: #include <stdio.h> int main() { char c=‘5’ ; printf(“%d",c+3); }
第5题:
【单选题】已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 main() { union {unsigned char c; unsignedint i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c);}
A.6
B.9
C.0
D.3
第6题:
已知字符'0'的ASCII码为十六进制的30H,下面程序的输出是()。 void main() { union { unsigned char c; unsigned int i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c); }
A.6
B.9
C.0
D.3
第7题:
已知字符0的ASCII代码值的十进制数是48,以下程序 #include<stdio.h> main() { union{ int i[2]; long k; char c[4]; }r,*s=&r; s->i[0]=0x39; s->i[1]=0x38; printf("%xn",s->c[0]); } 其输出结果是()。
A.39
B.9
C.38
D.8
第8题:
已知字符'0'的ASCII码的十进制数为48,并且数组的第0个元素在低位,有以下程序 #include<stdio.h> main() { union{int i[2];long k:char c[4];}r,*s=&r; s->i[0]=0x39;s->i[1]=0x38;printf("%c\n",s->c[0]); } 程序运行后的输出结果是 ( )
A.39
B.9
C.38
D.8
第9题:
已知字符0的ASCⅡ码为十六进制数30,下面程序的输出是______。 main() { int i; union{unsigned char c;unsigned int i[4];}z; z.i[0]=0x39;z.i[1]=0x36; printf("%d\n",z.c); }
A.56
B.57
C.58
D.59