Sujet : Re: question about nullptr
De : andreytarasevich (at) *nospam* hotmail.com (Andrey Tarasevich)
Groupes : comp.lang.cDate : 06. Jul 2024, 18:50:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6c04v$3tdkc$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
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).
-- Best regards,Andrey