Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Elimination of wild pointer best
no vote
Application background Pointer to an object that has been deleted or not for access to a restricted area of memory. Different from the null pointer, the pointer can not be avoided by simply judging whether it is NULL, and can only be used to develop good programming habits to reduce. The operation of the pointer is easy to cause the program error.Sometimes a pointer to an free or delete after an NULL can be considered as legitimate. Don't look at the names of free and delete (especially delete), they just release the pointer to the memory, but it does not kill the pointer itself. At this point the pointer points to the "garbage" memory. After the release of the pointer should be immediately set to NULL, to prevent the generation of wild pointer". Key Technology The pointer variable must be initialized to NULL, since any pointer variable is not automatically created when the NULL pointer is created, and its default value is random.When the pointer
y超酷小子
2016-08-23
0
1
No more~