【程序】
#include <stdio.h>
#include <string.h>
struct A
{int a;
char b[10];
double c;
};
void f(struct A t)
{t.a=1002;
strcpy(t.b," ChangRong");
t.c=1202.0;
}
main()
{struct A a={1001,"ZhangDa",1098.0};
f(a);
printf("%d,%s,%6.1f
",a.a,a.b,a.c);
}
发布于 2021-02-17 08:40:16
- 体验AI问答!更聪明、超智能!
- 一款基于GPT的超级AI助手,可以对话、创作、写文案!