【报错】练习2.32
Author: dvoprmCreated May 14, 2020Updated Oct 6, 2022
合法。指针可以初始化为 0 表示为空指针。
int null=0, *p=null 无法通过编译,报错
error: cannot initialize a variable of type 'int *' with an lvalue of type 'int' int *p = null; ^ ~~~~
但是int null=0, *p=0 可以通过编译
Source: applenob/Cpp_Primer_Practice