摘要
指针是C程序设计的重点和难点,也是软件界的讨论热点。正确而灵活地运用指针,可以有效地表示复杂的数据结构,能动态分配内存,直接处理内存地址等。在学习和应用指针过程中,传统的指针概念和用法常常使人感到困惑。文中提出了单星指针、双星指针等新概念,比较全面地介绍了指针的理论和应用。
The pointers are important and difficult in C programming, but also hot to discuss in the software industry. Right and flexible to use pointers can express effectively complex data structures, allocate memory dynamically and can directly deal with the memory address. Study and application of pointers in the process, the traditional concepts and the use of pointers often feel puzzled. In this paper we present 1-star pointer, 2-star pointer, such as new concepts, a more comprehensive introduction to the theory and application of pointers.
出处
《电脑编程技巧与维护》
2009年第16期114-116,126,共4页
Computer Programming Skills & Maintenance
关键词
内存
指针
单星指针
双星指针
动态数组
memory
pointer
1-star pointer
2-star pointer
dynamic array