首页 > 其他 > 详细

c中的变量

时间:2017-08-19 16:19:29      阅读:229      评论:0      收藏:0      [点我收藏+]

1 变量类型

1.1 static

global or static

.data/.bss

1.2 automic

stack,its relevant to os kernel and compiler

1.3 dynamic

malloc()

 

2 life time

static as long as the program.

automic as long as the function.

synamic live until free

c中的变量

原文:http://www.cnblogs.com/hustdc/p/7396738.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!