问题详情

下列程序的运行结果为【 1 4 】

#include <stdio.h>

#include <string.h>

struct A

{int a; char b[10];double c;};

void f(struct A *t);

main()

{ struct A a={1001,"ZhangDa",1098.0};

f(&a); printf("%d,%s,%6.1f\n",a.a,a.b,a.c);

}

void f(struct A *t)

{ strcpy(t->b,"ChangRong");}

参考答案
您可能感兴趣的试题