- 1
- 0
- 约1.04万字
- 约 12页
- 2017-10-05 发布于河南
- 举报
702 变量和常量(702 variables and constants)
702 变量和常量(702 variables and constants)
When the compiled environment is set up, you can formally learn the C language.
Variables
(1) variable types and representation methods
1. what is a variable? In a word, a variable is the space in which data is stored. Since there are many types of values, there are integers, decimals, characters, and so on, then the corresponding variables have integer variables, floating point variables, and character variables. There are other specific classifications for variables. Integer variables can also be classified into unsigned, long, and short integers. Floating point type can also be divided into single precision type, double precision type and long double precision type. It can also be divided into static variables, external variables, register variables, and automatic storage variables. These data types we in this section and the following chapters will introduce one after another.
Then, we always give the variable a name, which is called the identifier.
The naming of identifiers has certain rules:
(1) identifiers can only be made up of three characters: letters, numbers, and underscores
(2) the first character must be the letter (either the first character or the underscore, but is considered as a system - defined identifier)
(3) uppercase and lowercase letters are considered two different characters, such as A and a, which are two distinct identifiers
(4) identifiers can be arbitrarily long, but only the first 32 bits are valid. Some older versions of C restrict external identifiers to 6 bits. This is due to the limitations of the linker, rather than the limitations of the C language itself
(5) identifiers cannot be the keywords of C
2., from the above rules, there is a keyword concept. Whats the key word then?
As you can see from the surface meaning, the key word is a representation of some characteristics of the C language itself, and it is the only one that represents a certain meaning.
Here are the 32 C language keywords d
您可能关注的文档
- (java)面相对象程序设计 复习题((Java) face object programming review questions).doc
- (二)统考考务管理系统考点申报使用说明((two) examination, examination and management system, test site declaration, instructions for use).doc
- (二) 变量和常量((two) variables and constants).doc
- (纠正版)怀旧动画金曲夜((correction Edition) nostalgic animation Golden Night).doc
- (八年级数学)图形的全等(二)—全等三角形的识 …((Mathematics of grade eight) the congruence of figures (two) - congruent triangles...).doc
- (转)现在当兵一年能拿多少补贴((transfer) how much subsidy can we get for a year in the army).doc
- (项目管理者联盟专稿)定量分析在it项目管理中的应用研究(Application of quantitative analysis in project management of IT project).doc
- 003操作系统样卷(003 operating system volume).doc
- 005-浅谈医院电子病历系统的发展与应用(广州新海医院)(The development and application of 005- on the hospital electronic medical record system (Guangzhou Xinhai hospital)).doc
- 009中国古代战车(009 ancient Chinese Chariot).doc
最近下载
- SY-T 5504.3-2008 油井水泥外加剂评价方法 第3部分:减阻剂.pdf VIP
- 【三年级数学】每日口算 30 天.pdf VIP
- 物资采购应急方案.docx VIP
- 餐饮服务与管中职全套完整教学课件.pptx
- 第四版国际压力性损伤溃疡预防和治疗临床指南解读PPT课件.pptx VIP
- 1209 六年级(上)英语知识点汇总(外研版).docx VIP
- ICP-MS介绍讲课课件.ppt VIP
- 6篇2025年度民主生活会“五个带头”对照检查材料(参考范文).docx VIP
- DBJT_15-138-2018_建筑电气防火检测_技术规程-全国各省建筑标准.pdf VIP
- j12ZG604-全国各省建筑标准.pdf VIP
原创力文档

文档评论(0)