题目内容
下面程序的运行结果是_____。#include struct STU{ char name[10];int num; };void f(char *name, int num){ struct STU s[2]={{"Sun",2044},{"Li",2045}};num=s[0].num;strcpy(name, s[0].name); }main(){ struct STU s[2]={{"Yang",2041},{"Guo",2042}},*p;p=&s[1];f(p->name, p->num);printf("%s %d\n", p->name, p->num); }
查看答案
搜索结果不匹配?点我反馈
更多问题