检查指针是不是NULL通过简单写入if(pointer)或我必须使用它是否安全if(pointer != NULL)?
NULL
if(pointer)
if(pointer != NULL)
c++ null pointers if-statement null-pointer
c++ ×1
if-statement ×1
null ×1
null-pointer ×1
pointers ×1