stdlib.h中
c++中NULL就是0
/* Define NULL pointer value */
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
c++中NULL就是0
但是c中NULL却需要强制转换。
为什么?
不知道啊!!