阿摩線上測驗 登入

試題詳解

試卷:98年 - 2009年9月计算机等级考试— 二级—《C语言 》#13773 | 科目:计算机等级考试— 二级—《C语言 》

試卷資訊

試卷名稱:98年 - 2009年9月计算机等级考试— 二级—《C语言 》#13773

年份:98年

科目:计算机等级考试— 二级—《C语言 》

38)有以下程序 #include #include structA {inta;charb[10];doublec;}; structAfstructAt); main) {structA a={1001,”ZhangDa”,1098.0}; a=fA;jprintf“%d,%s,%6.1f\n”,a.a,a.b,a.C; } structAfstructAt) t.a=1002;strcpyt.b,”ChangRong”);t.c=1202.0;returnt;)程序运行后的输出结果是
(A)1001,ZhangDa,1098.0
(B)1001,ZhangDa,1202.0
(C)1001,ChangRong,1098.0
(D)1001,ChangRong,1202.0
正確答案:登入後查看