摘要
指针是C语言的精华所在,正确使用指针能使程序简洁高效,能避免内存错误和程序异常,保证程序的正确性和可移植性。针对指针在编程过程中可能出现的错误,阐述了C编译器对数据进行内存分配的策略,通过具体的实例进行分析,并给出解决方法。
The pointer is the essence of the C language. The proper use of pointer can make the program simple and efficient, can avoid memory errors and exceptions and guarantees the correctness of program and portability. According to thepossible errors of pointer in the course of programming, the memory allocation strategy of data of the C compiler has beenexpounded and given the solution through the analysis of specific examples.
出处
《电脑编程技巧与维护》
2014年第14期22-22,63,共2页
Computer Programming Skills & Maintenance
关键词
C语言
指针
内存分配
内存错误
C Language
Pointer
Memory Allocation
Memory Error