1. static variable
1.1 prevent variable to be referenced by other file.
1.2 only one copy.
2. static function
prevent function to be call from other c file.
eg:
temp.c static int fun() {printf("fun"); return 0;}
main.c
extern int fun();
int main() {fun(); return 0; } //error: can not reference fun();