作业帮 > 英语 > 作业

英语翻译The duration of a variable is the period of time during

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/17 03:44:16
英语翻译
The duration of a variable is the period of time during which storage is allocated to the variable.There are two categories of duration:dynamic and fixed.A variable with dynamic duration is created anew each time the block in which it is declared is entered.When the program leaves the block,the variable disappears.Conversely,a variable with fixed duration exists throughout the execution of the entire program.
一个变量的生存期是指存储空间被分配给变量的那一段时间.有两种生存期:动态的和固定的.具有动态生存期的变量在它所在的模块里每次被声明的时候所创建的.当程序离开这个模块时,这个变量就消失了.相反的,具有固定生存期的变量在整个程序执行的时候都存在.
------------------
亲自翻译的,你应该看得懂.