检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:史宇轩 徐洪丽[2] 丁颐宁 SHI Yuxuan;XU Hongli;DING Yining(School of Computer Science and Technology,Shangdong University of Technology,Zibo,Shandong Province,255000 China;School of Information Science and Engineering,Shandong Agricultural University,Taian,Shandong Province,271018 China;College of Geodesy and Geomatics,Shandong University of Science and Technology,Qingdao,Shandong Province,266590 China)
机构地区:[1]山东理工大学计算机科学与技术学院,山东淄博255000 [2]山东农业大学信息科学与技术学院,山东泰安271018 [3]山东科技大学测绘科学与空间信息学院,山东青岛266590
出 处:《科技资讯》2023年第8期1-4,共4页Science & Technology Information
基 金:泰安市科技局(项目编号:2019GX022)。
摘 要:指针在C语言程序设计中占有重要地位,指针变量的灵活性是C语言的主要特色之一。指针变量能够方便表示各种复合数据类型,可以使用数组和字符串,同时也可以处理内存地址。文章首先论述了指针和地址的关系,以及指针的定义;其次,根据指针的实质化繁为简,总结了3种不同的指针赋值方式;再次,给出了常用的指针运算和注意事项;最后,辅助以举例和练习。指针变量的灵活性也带给程序一定的危险性,因此能否正确理解和使用指针是是否掌握C语言的一个标志。The pointer occupies an important position in programming in C language,and the flexibility of pointer variables is one of the main features of C language.Pointer variables can easily represent a variety of composite data types,can use arrays and strings,and can also handle memory addresses.This article firstly discusses the relation between pointers and addresses and the definition of the pointer,then simplifies the complex according to the essence of pointer and summarizes three different pointer assignment methods,gives commonly used pointer operations and matters needing attention again,and finally gives auxiliary examples and exercises.The flexibility of pointer variables also brings some risks to the program,so whether you can understand and use pointers correctly is a sign of mastery of C language.
关 键 词:地址和指针 指针变量 指针变量赋值 指针变量运算
分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.49