在C中,NULL指针和指向0的指针之间有什么区别?
解决方法
ISO / IEC 9899:TC2在6.3.2.3指针中声明
3 An integer constant expression with the value 0,or such an expression@H_404_8@ cast to type void *,is called a null pointer constant.55) If a null@H_404_8@ pointer constant is converted to a pointer type,the resulting@H_404_8@ pointer,called a null pointer,is guaranteed to compare unequal to a@H_404_8@ pointer to any object or function
宏NULL扩展为实现定义的空指针常量.
任何两个空指针都应该相等.