已知字符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,下面程序的输出是___________。 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
第2题:
15、已知字符‘7’的ASCII码值是55,请写出如下程序的输出结果: #include <stdio.h> int main() { char c=‘5’ ; printf(“%d",c+3); }
第3题:
已知字符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; }
第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);}