huangblue / c

0 stars 0 forks source link

全局变量有初值,局部变量无 #26

Open huangblue opened 7 years ago

huangblue commented 7 years ago

So remember that while global variables have default initial values of zero, local variables have no default initial value and so must be explicitly initialized by the program.

如果是数值型的全局变量,初值为0; 局部变量需要明确赋值