nulltpr is a keyword that represents zero as an address(its type is considered a pointer-type),while NULL is the value zero as an int. If you’re writing something where you’re referring to the zero address ,rather than the value zero, you should use nullptr.
nulltpr是一个关键字,将零表示为一个地址(其类型被视为指针类型),而NULL则将值零表示为一个int。 如果要写的内容是指零地址而不是零,则应使用nullptr。
本文探讨了在编程中如何区分零地址与零值的概念。详细解释了nulltpr作为关键字用于表示零地址,而NULL则表示整数零。文章强调在指零地址时应使用nullptr。

1027

被折叠的 条评论
为什么被折叠?



