Liste des Groupes | Revenir à cl c |
Andrey Tarasevich <andreytarasevich@hotmail.com> writes:
>On 07/06/24 7:04 AM, Scott Lurndal wrote:>
>Whereas I spent 6 years programming on an architecture[*] where a>
null pointer was represented in hardware by the value 0xc0eeeeee. I always
use the NULL macro in both C and C++ code.
But that achieved absolutely nothing over using plain `0` in the source
code.
>
The `NULL` you used was still defined as `0` (in C++ libs) and 0 or
`(void *) 0` (in C libs).
Which ambiguity is yet another reason to use the NULL or nullptr
tokens.
Les messages affichés proviennent d'usenet.