c中的变量

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

posted @   PhoenixTree(梧桐树)  阅读(128)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示