Deutsch English Français Italiano |
<v6c04v$3tdkc$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Andrey Tarasevich <andreytarasevich@hotmail.com> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Sat, 6 Jul 2024 10:50:22 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: <v6c04v$3tdkc$1@dont-email.me> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6bfi1$3qn4u$1@dont-email.me> <l9ciO.7$cr5e.2@fx05.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 06 Jul 2024 19:50:23 +0200 (CEST) Injection-Info: dont-email.me; posting-host="16157cccf0f57c860cc4ee92efb3b764"; logging-data="4109964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qqAhsDtl36mffd2POz/Z7" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:zskEGF7yHVxTsCggS7V7kntsOUo= Content-Language: en-US In-Reply-To: <l9ciO.7$cr5e.2@fx05.iad> Bytes: 1522 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