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
原文:http://www.cnblogs.com/hustdc/p/7396738.html