Deutsch English Français Italiano |
<v6bl3t$3rijo$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Sat, 6 Jul 2024 16:42:05 +0200 Organization: A noiseless patient Spider Lines: 18 Message-ID: <v6bl3t$3rijo$2@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=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 06 Jul 2024 16:42:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ac28dfb64dabbb70118b181eb38e3e1d"; logging-data="4049528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bqYokd8cXKoUpKQd7Txdb" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:TinmNuIxiSZi5yEK+dlrTlTVYuE= In-Reply-To: <l9ciO.7$cr5e.2@fx05.iad> Bytes: 1602 On 06.07.2024 16:04, Scott Lurndal wrote: > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes: >> >> We also used 0 as "universal" pointer value regularly without problems. > > Whereas I spent 6 years programming on an architecture[*] where a > null pointer was represented in hardware by the value 0xc0eeeeee. Yes, but a 0 pointer value has not the meaning of an int value 0. Janis > I always > use the NULL macro in both C and C++ code. > > [*] now obsolete. >