题目内容
以下程序有三处语法错误,请指出#includestruct student{short num;char name[20];char sex;short age;}int main(){struct student stu[4] = {{112,"Wang Lin",'M',15},{113,"Li",'W',20}};struct student *p;stu[2].num = stu[1].num+1;stu[2].name = stu[1].name;stu[2].sex = 'W';stu[2].age = 23;printf("%s\n",stu[2].name);p = &stu[3];*p = stu[0];printf("%s",p.name);return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题