Abstract: This article puts its primary discussions on several difficulties in the C programming language: the concept of pointer, the comparison between pointer and array, the manner of memory allocation, the common memory errors and its countermeasures, some policies for memory management and the key points in using malloc/free. In particular, exhaustive, typical codes are presented for the comparision between pointer and array.
Keywords: pointer, array, memory management.
Abstract:This article has discussed several difficult points in C language mainly:the concept of pointer,the comparison between pointer and array,the way of memory allocation,frequent memory errors and some rules of the countermeasure,some rules of memory management and the main of usings of malloc and free.In addition there are exhaustive, typical source codes about the comparison between pointer and array exhaustive, typical source codes.
Keywords:pointer,array,memory management.
看看怎么样?