Internal static variables in C, would you use them?

后端 未结 13 1505
甜味超标
甜味超标 2020-12-07 19:09

In C you can have external static variables that are viewable every where in the file, while internal static variables are only visible in the function but is persistent

13条回答
  •  死守一世寂寞
    2020-12-07 19:42

    Not anymore. I've seen or heard the results of function local static variables in multithreaded land, and it isn't pretty.

提交回复
热议问题