1, static int a: variable a is defined as a static integer variable.
2.int a: defined as an integer variable.
Second, variability is different.
1, static int a: Its value will be set at compile time and cannot be changed at run time.
2.int A: This value is set at runtime and can be changed at any time.
Third, the scope is different.
1, static int a: scope is limited to files.
2.int A: The scope is inside the function, and it can be used as the holder of a certain value.
Baidu Encyclopedia-Static Variable
Baidu Encyclopedia-Variable