问题 填空题

# include "stdio.h" siruct student {int number; char name[10]=" "; }; main() {stmct student s; s.number=12345; printf("%d\n",s.number); } 错误 ______ 改正 ______

答案

参考答案:char name[10]=" ";//error:在结构体的声明中不能对成员进行初始化

解析:改正:char name[10];

问答题
单项选择题