單項選擇題

已知字符’0’的ASCII碼值為十六進制的30,下面程序的輸出是()。
void 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.單項選擇題當輸入數(shù)據(jù):2763時,下面程序的運行結果是()。

A.a=30、b=63、gbs=189、gys=9
B.a=27、b=63、gbs=190、gys=10
C.a=27、b=63、gbs=189、gys=9
D.a=27、b=63、gbs=188、gys=10

2.單項選擇題下面程序中,合法的選項是()。

A.<include <stdio.h>int main(){printf("hello world\n");return 0;}
B.<include <stdio.h>int man(){printf("hello world\n");return 0;}
C.<include <stdio.h>int main(){printf("hello world\n")return 0;}
D.<include <stdio.h>int main(){print("hello world\n");return 0;}