摘要
指针被称为C语言的灵魂,但是其概念难以把握,成为C语言学习的主要障碍之一。以"开关"为基础,构建简易的内存模型,分析"变量概念"的两个基本特点:"地址信息"和"状态信息",进而解析"内存区域"、"变量"、"指针"之间的基本关系。从而理清"指针"概念的基本特点。
The pointer plays a cornerstone role in C language.However,its concept is difficult to master and becomes one major obstacle in learning C.One simple memory model is made from switches,and it demonstrates two basic characteristics of variables:address information and state information.From the point of memory region,the relationship between variable and pointer is analyzed.Thus,the basic characteris⁃tics of pointer in C language are clarified.
作者
张天友
ZHANG Tian-you(Department of Intelligent Manufacturing,Wuxi Vocational Colleague of Science and Technology,Wuxi 214000)
出处
《现代计算机》
2020年第33期94-99,共6页
Modern Computer