填空題
以下程序的執(zhí)行結(jié)果是() main() { int a, b, *p = &a, *q = &b; a = 10; b = 20; *p = b; *q = a; printf(“a = %d, b = %d\n”, a, b);
單項選擇題
A.追加寫盤 B.可讀可寫盤 C.只讀盤 D.只寫盤
A.enum a {"sum","mon","tue"}; B.enum a={sum,mon,tue}; C.enum a={"sum","mon","tue"}; D.enum a {sum=9,mon=-1,tue};
A.a的地址 B.511 C.512 D.無確定值
A.printf("%d",*p[5]); B.printf("%d",p[5]); C.printf("%d",*(p+5)); D.printf("%d",*(a+5));
以下函數(shù)調(diào)用語句中實參的個數(shù)是()。 func((e1,e2),(e3,e4,e5));
A.5 B.語法錯誤 C.2 D.3