写出下面程序执行后的运行结果。 #include <stdio.h> struct STU { char name[10]; int num
已帮助 人
写出下面程序执行后的运行结果。 #include <stdio.h> struct STU { char name[10]; int num; }; void f1(struct STU c) { struct STU b={"LiSiGuo",2042}; c=b; } void f2(struct STU *c) { struct STU b={"SunDan",2044}; *c=b; } int main() { struct STU a={"YangSan",2041},b={"WangYin",2043}; f1(a); f2(&b) ; printf("%d %d",a.num,b.num); return 0; }
![写出下面程序执行后的运行结果。 #include <stdio.h> struct STU { char name[10]; int num](/uploads/allimg/6-2695859Q9.jpg)
回答
共1条回复-
G [解析]x='f'则'f'-'a'=5,'A'+5+1='G'。对一下ASCⅡ码表就行了。
