设有以下程序,程序运行后的输出结果为,可以解释一下为什么嘛?
intmain(){structWTU{charname[12];charsex;doublesocore[2];}structSTUx={"lin",'f',72.5,...
int main()
{
struct WTU{char name[12]; char sex; double socore[2]; }
struct STU x = { "lin", 'f', 72.5, 83.0 }, y = { "Ma", 'm', 85.0, 90.5 };
y = x;
printf("%s,%c,%200f,%2.0f\n", y.name, y.sex, y.socore[0], y.socore[1]);
return 0;
} 展开
{
struct WTU{char name[12]; char sex; double socore[2]; }
struct STU x = { "lin", 'f', 72.5, 83.0 }, y = { "Ma", 'm', 85.0, 90.5 };
y = x;
printf("%s,%c,%200f,%2.0f\n", y.name, y.sex, y.socore[0], y.socore[1]);
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询