题海让大学四年没有难题
白天模式登陆

题目详情

单选题 以下程序的运行结果是________.#include <stdio.h>struct STU{ char name[9]; char sex; int s[2];};void f(struct STU a[]){ struct STU b={"Zhao",'m',85,90}; a[1]=b;}int main(){ 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].s[0],c[0].s[1]); printf("%s,%c,%d,%d\n",c[1].name,c[1].sex,c[1].s[0],c[1].s[1]);return 0;}

A. Zhao,m,85,90,Sun,m,98,99

B. Zhao,m,85,90,Qian,f,95,92

C. Qian,f,95,92,Sun,m,98,99

D. Qian,f,95,92,Zhao,m,85,90

C语言程序设计课程封面

学科:C语言程序设计

时间:2024-05-28 23:17:16

Copyright © 2022 津ICP备2021001502号