# include "stdio.h" siruct student {int number; char name[10]=" "; }; main() {stmct student s; s.num

admin2008-07-10  41

问题 # 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];

解析
转载请注明原文地址:https://jikaoti.com/ti/fOtaFFFM
0

最新回复(0)