OSCHINA 社区最新专区文章 |
Posted: 04 Oct 2021 06:54 AM PDT 一、static关键字: 1.全局静态变量:static修饰的全局变量,自动初始化为0.(全局变量也是自动初始化为0)。 作用域:仅在声明它的文件中起作用,即声明到文件尾部。 存储位置:静态存储区,从程序运行就开始存在。 2.局部静态变量:static修饰的局部静态变量,自动初始化为0. 作用域:局部作用域,定义的函数或者语句块结... |
You are subscribed to email updates from OSCHINA 社区最新专区文章. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment