Chinaunix首页 | 论坛 | 博客
  • 博客访问: 163969
  • 博文数量: 119
  • 博客积分: 2862
  • 博客等级: 上尉
  • 技术积分: 945
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-20 09:46
文章分类

全部博文(119)

文章存档

2013年(2)

2012年(61)

2011年(22)

2010年(34)

分类:

2010-11-01 21:41:30

#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;
 
}
 
 
阅读(785) | 评论(0) | 转发(0) |
0

上一篇:博客 推荐

下一篇:GetErrorText

给主人留下些什么吧!~~