(6.7)--6.7Lifecycleandscopeofglobalvari.pdf
《(6.7)--6.7Lifecycleandscopeofglobalvari.pdf》由会员分享,可在线阅读,更多相关《(6.7)--6.7Lifecycleandscopeofglobalvari.pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Life Cycle and Scope of Global VariablesLife Cycle and Scope of Global Variables6.7The storage types of variables can be divided into global variables,local variables,static global variables and static local variables according to the different positions and ways of variable definition.The storage t
2、ype of a variable determines the scope and life cycle of the variable.Life Cycle and Scope of Global Variables6.7means the scope of avariable,that is,wherethevariablecanbeused,and describes thespatial attribute of thevariable.Scopemeans a variables lifespan,that is,the time period in which the varia
3、ble exists during the entire program,and describes the time attribute of the variable.Life cycleLife Cycle and Scope of Global Variables6.7Global variables are variables defined outside of all functions.If global variables are not initialized when they are defined,they are automatically initialized
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 6.7 Lifecycleandscopeofglobalvari
限制150内