• 2021-04-14 问题

    有以程序#include#includetypedefstruct{charname[9];charsex;floatscore[2];}STU;voidf(STUa){STUb={“Zhao”,’m’,85.0,90.0};inti;strcpy(a.name,b.name);a.sex=b.sex;for(i=0;i<2;i++)a.score[i]=b.score[i];}main(){STUc={“Qian”,’p’,95.0,92.0};f(c);printf(“%s,%c,%2.0f,%2.0f ”,c.name,c.sex,c.score[0],c.score[1]);}程序的运行结果是

    有以程序#include#includetypedefstruct{charname[9];charsex;floatscore[2];}STU;voidf(STUa){STUb={“Zhao”,’m’,85.0,90.0};inti;strcpy(a.name,b.name);a.sex=b.sex;for(i=0;i<2;i++)a.score[i]=b.score[i];}main(){STUc={“Qian”,’p’,95.0,92.0};f(c);printf(“%s,%c,%2.0f,%2.0f ”,c.name,c.sex,c.score[0],c.score[1]);}程序的运行结果是

  • 2021-04-14 问题

    下面程序的运行结果是()。#includestdio.h#includestring.htypedefstruct{charname[9];charsex;floatscore[2];}stu;stuf(stua){stub={“zhao”,’m’,85.0,90.0};inti;strcpy(a.name,b.name);a.sex=b.sex;for(i=0;i2;i++)a.score[i]=b.score[i];returna;}intmain(){s௲୔垎෥෥뗐敔敔垎෥�敘垎෥၈Ǔ瘓礀Ǡ㰰Ǒ㰰Ǒብ盂剦௬Ѐ￾￿￾￿㼈௲ብ盂Ѐ㰰Ǒ￾￿ᰀ狣Ԝ盜Љ䕄঒

    下面程序的运行结果是()。#includestdio.h#includestring.htypedefstruct{charname[9];charsex;floatscore[2];}stu;stuf(stua){stub={“zhao”,’m’,85.0,90.0};inti;strcpy(a.name,b.name);a.sex=b.sex;for(i=0;i2;i++)a.score[i]=b.score[i];returna;}intmain(){s௲୔垎෥෥뗐敔敔垎෥�敘垎෥၈Ǔ瘓礀Ǡ㰰Ǒ㰰Ǒብ盂剦௬Ѐ￾￿￾￿㼈௲ብ盂Ѐ㰰Ǒ￾￿ᰀ狣Ԝ盜Љ䕄঒

  • 1