题目内容
以下程序的运行结果是( )。#include struct STU{char name[9]; char sex; int score[2]; } ;void f(struct STU a[ ]){struct STU b = { "zhao", 'm', 85, 90} ;a[1] = b;}int main(void){struct STU c[2] = { {"Qian", 'f', 95, 92"}, {"Sun", 'm', 98, 99} };f(c);printf("%s,%c,%d,%d,", c[0].name, c[0].sex, c[0].score[0], c[0].score[1] );printf("%s,%c,%d,%d", c[1].name, c[1].sex, c[1].score[0], c[1].score[1] );return 0;}
查看答案
搜索结果不匹配?点我反馈