Practical C Programming - Chapter 9
来源:互联网 发布:java下载 编辑:程序博客网 时间:2024/05/01 14:33
Chapter 9. Variable Scope and Functions
All variables have two attributes: scope and class. The scope of a variable is the area of the program in which the variable is valid. A global variable is valid everywhere(hence the name global), so its scope is the whole program. A local variable has a scope that is limited to the block in which it is declared and cannot be accessed outside that block. A block is a section of code enclosed in curly braces ({}).
_
Local variables are temporary unless they are declared static.
static has an entirely different meaning when used with global variables. It indicates that a variable is local to the current file.
0 0
- Practical C Programming - Chapter 9
- <Practical C Programming> chapter 4
- Practical C Programming - Chapter 2
- Practical C Programming - Chapter 3
- Practical C Programming - Chapter 4
- Practical C Programming - Chapter 5
- Practical C Programming - Chapter 10
- note <practical c programming> chapter 5
- Practical Programming in C
- 6.087 Practical Programming in C, lec6
- 6.087 Practical Programming in C, lec7
- 6.087 Practical Programming in C, lec8
- 6.087 Practical Programming in C, lec9
- 6.087 Practical Programming in C, lec10
- 6.087 Practical Programming in C, lec11
- 6.087 Practical Programming in C, lec12
- 6.087 Practical Programming in C, lec13
- 6.087 Practical Programming in C, lec14
- TCP序列号和确认号详解
- 创建Material Design风格的Android应用--应用主题
- 自制全铝CNC雕刻机全过程(完工篇)
- 一个国内的 ngrok 服务器
- HDU2444 The Accomodation of Students(二分匹配 匈牙利算法)
- Practical C Programming - Chapter 9
- 如何导入frm格式MYD格式MYI格式文件到MySQL中
- oracle 中的translate函数
- first Missing Positive number
- IOS缓存基本知识和清除缓存的方法
- mapreduce编程:求平均值
- QueryBuilder: A Simple Way to Read and Write Query Strings
- highCharts+ajax+json+ashx混合图形动态生成
- iOS开发中的多线程