假设a是一个指针,在为它分配内存之后,我想检查内存是否已成功分配,我已经看到了两种方法:
a
if(a != NULL) if(a)
第一个和第二个陈述有什么区别?
c if-statement nul
c ×1
if-statement ×1
nul ×1