节点文献
C语言指针探讨
Discussion of the Pointer of C Language
【摘要】 结合实例从五个方面对C语言指针进行分析和探讨:阐述C语言指针的概念和正确使用指针变量,区分指针变量和指针的指向变量的含义和用法;通过判断变量与运算符*,[]和()的结合顺序来确定变量的数据类型及指向变量或成员变量的类型;指出指针与数组的关系,通过指针来访问数组元素和采用下标法数组元素的等价关系;作为函数参数的指针变量,可以改变所指向的主调函数变量的值;指针可以实现动态存储分配,用来实现对链表的创建、插入和删除等操作。
【Abstract】 The pointer of C Language is analysed and discussed with examples in five aspects: the concept of the pointer of C Language and the correct useing of the pointer variant, the meanings and usage between the pointer variant and the pointed variant. By judging the variable conjunct sequence with the operator such as *, and () ascertaining the data type of the variant and the pointed variant or the member variant, indicating the relation between the array and the pointer, the equivalent relation of calling the array element by the pointer and the subscript. The pointer variant playing as the function parameters can change the value of the pointed variant in the call function. The pointer can implement the allocation of the dynamic memory and the operations of the link list such as the creation, the insertion and the deletion.
- 【文献出处】 莆田高等专科学校学报 ,Journal of Putian College , 编辑部邮箱 ,2001年04期
- 【分类号】TP312
- 【被引频次】5
- 【下载频次】145