static

Declaring a global variable as static limits its scope to the same file in which it is defined.
A static function is only accessible to the same file in which it is defined.
A local variable declared as static preserves the value of the variable between the function calls.

posted @ 2021-10-05 16:35  xmydis  阅读(80)  评论(0)    收藏  举报