|
|
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,
------ |
|