#include<stdio.h> #include<string.h> struct number { int i; float x; char c[50]; }num=(1954,"University"

admin2010-02-02  52

问题 #include<stdio.h>
   #include<string.h>
   struct number
   {  int i;
   float x;
   char c[50];
   }num=(1954,"University",7.98};
   main()
   (  struct number numl;
   num1.i=999;
   num1.x=123.123:
   strcpy(num1.c,"Beijing");
   pfintf("%d,%f,%s\n",hum.i,num.x,num.c);
   pfintf("%d,%f,%s\n",numl.i,num1.x,num1.c);
   }
   错误:______
   改正:______

选项

答案错误:num={1954,"University",7.98}; 改正:num={1954,7.98,"University"};

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

最新回复(0)