写出下面程序执行后的运行结果。 #include <stdio.h> #include <string.h> struct wo
已帮助 人
写出下面程序执行后的运行结果。 #include <stdio.h> #include <string.h> struct worker { char name[15]; int age; float pay; }; int main() { struct worker x; char *t="Lilei"; int d=20; float f=100; strcpy(x.name,t); x.age=d*2; x.pay=f*d; printf("%s %d %.0f",x.name, x.age, x.pay); return 0; }

回答
共1条回复-
G [解析]x='f'则'f'-'a'=5,'A'+5+1='G'。对一下ASCⅡ码表就行了。
