对C 中指针的深入研究(1)
2014-07-27 01:34
导读:计算机应用论文论文,对C 中指针的深入研究(1)样式参考,免费教你怎么写,格式要求,科教论文网提供的这篇文章不错:摘 要:本文对C 各种类型的指针进行了深刻全面地讨论,把各种指针的常量,
摘 要:本文对C 各种类型的指针进行了深刻全面地讨论,把各种指针的常量,变量的声明、赋值和访问都一一列出,这对利用指针开发大型软件的程序员来说无疑是一个非常有力的工具。本文还揭示了指针变量与数组名的内在关系,以及类的静态数据指针与非静态数据指针的根本区别。关键词:指针类型、指针常量、指针变量、数组名Abstract:All kinds of pointers in C are thoroughly and deeply discussed.The constant quantity,variables,the form of endowing with value and access to data are listed like a table.This is undoubtedly a useful tool to a programmer who develops big softwares.The author bring to light the relationship between the pointer variables and the name of number groups.He also reveals the essential distinction between a static pointer and non-static pointer. Keywords:pointer type data,pointer constant quantity,pointer variable,a number group’s nameC 中的“指针”实质上是指针类型的数据,所以指针既有常量,也有变量。但是人们往往只是简单的说“指针”,没有带“常量”或“变量”二字。那么,该“指针”到底是指常量呢还是指变量呢?这个问题要根据它所属的那个整句才能回答。C 中的指针按照它所指向的对象可以划分为变量指针、数组指针、函数指针、对象指针、类的成员数据指针和类的成员函数指针。一、变量指针设type代表任意一种基本类型说明符,X是该类型的变量,则:1、X的指针常量为