#include
struct std{
int a;
int d;
int b;
};
static struct std std1;//定义?声明?
static struct std std1={//定义加赋初值?仅仅赋值?
.a=1,
.b=2,
};
int main(void){
printf("&std1 =%p\n",&std1);
printf("std1.a =%d\n",std1.a);
printf("std1.b =%d\n",std1.b);
printf("std1.d =%d\n",std1.d);
return 0;
}
阅读(821) | 评论(0) | 转发(0) |