首页 > 职业考试题库1 > 题目详情
有以下程序: #include struct STU {int num; fl
题目内容:
[单选题]有以下程序: include struct STU {int num; float TotalScore;有以下程序: #include <strino.h> struct STU {int num; float TotalScore; }; void f(struct STU p) {struct STU s[2]={{20044,550},{20045,537}}; p.num=s[1].num;p.TotalScore=s[1].TotalScore; } main() {struct STU s[2]={{20041,703},{20042,580}}; f(s[0]); printf("%d%3.0t/n",s[0].num,s[0].TotalScore); } 程序运行后的输出结果是 ______。
A.20045 537
B.20044 550
C.20042 580
D.20041 703
有以下程序: #include <strino.h> struct STU {int num; float TotalScore; }; void f(struct STU p) {struct STU s[2]={{20044,550},{20045,537}}; p.num=s[1].num;p.TotalScore=s[1].TotalScore; } main() {struct STU s[2]={{20041,703},{20042,580}}; f(s[0]); printf("%d%3.0t/n",s[0].num,s[0].TotalScore); } 程序运行后的输出结果是 ______。
A.20045 537
B.20044 550
C.20042 580
D.20041 703
本题链接: