main.c测试代码如下:
#include <stdio.h>
struct aaa
{
char b[10];
int t;
float q;
};
struct aaa tt = {"aaaaaaaaa", 2, 2.2};
void fun(struct aaa c)
{
printf("+++++0x%08x, 0x%08x, 0x%08x, 0x%08x\n", &tt, tt.b, &tt.t, &tt.q);
printf("+++++0x%08x, 0x%08x, 0x%08x, 0x%08x\n", &c, c.b, &c.t, &c.q);
c.b[0] = 'c';
}
void func(struct aaa *c)
{
printf("+++++0x%08x, 0x%08x, 0x%08x, 0x%08x\n", &tt, tt.b, &tt.t, &tt.q);
printf("+++++0x%08x, 0x%08x, 0x%08x, 0x%08x\n", c, c->b, &c->t, &am