Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C Programming Tutorial on Youtube Date: Tue, 11 Oct 2016 11:52:29 -0700 Organization: None to speak of Lines: 33 Message-ID: References: <8be0cdbe-c2f4-42ec-b6a7-e9a154981718@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="c91660510313b0b3b2b18aebbb52bfad"; logging-data="20580"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fekDp03n2+hCknKqozh5E" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:JSBdtNVqx9Sc6AecMSu6qWsVL+o= sha1:iNLZDiLpjoqQGGIT5RkZaHCLxg8= Xref: csiph.com comp.lang.c:94739 supercat@casperkitty.com writes: > On Tuesday, October 11, 2016 at 12:05:21 PM UTC-5, Keith Thompson wrote: >> Stefan Ram writes: >> [...] >> > I am using "address" for "pointer value" and >> > "pointer" for "pointer object". >> >> Is a null pointer value an "address"? (I'd say no.) > > Whether *any* pointer represents any kind of address is an implementation > detail. [...] No, it isn't. It might be if you use the word "address" to refer to some low-level concept, but I'm using it the way the standard uses it. See, for example, the description of the unary "&" operator. I don't believe the standard has a formal definition of the word "address". The result of the unary "&" operator is clearly an "address" in the way the standard uses the word. It's less clear (to me) whether a null pointer value is an "address" in that sense. It doesn't matter much, and I'd be perfectly happy with either interpretation. I'm just pointing out that using the word "address" to mean "pointer value" could cause some confusion. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"