我static在C代码中看到了不同地方使用的单词; 这就像C#中的静态函数/类(其中实现是跨对象共享的)?
static
c syntax static
我读过Java不支持static本地变量,不像C/C++.现在,如果我想用一个局部变量编写一个函数,其值应该在函数调用之间保持不变,我该怎么做? 我应该使用实例变量吗?
java static scope
static ×2
c ×1
java ×1
scope ×1
syntax ×1