kuchaguangjie 发表于 2013-1-26 12:30:26

c static

c static
 
 
static external variable/function:
only visible in local file,
you can define multiple static variable in different source file, and there will be no conflict,
 
static local variable:
variable only init once, and keep the value among multiple function calls,
 
variable default value:
int type default to 0,
 
variable store location:
store in static storage,
 
------
no extern for static
 
you should not use extern on static variable/function,

------
页: [1]
查看完整版本: c static