Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Do "C" arrays start a 0 or 1? Date: Tue, 07 Jan 2020 10:31:45 -0800 Organization: None to speak of Lines: 23 Message-ID: <87v9pnktim.fsf@nosuchdomain.example.com> References: <87pnfxmz0i.fsf@nosuchdomain.example.com> <874kx7n5dr.fsf@nosuchdomain.example.com> <2e2172e1-a6e4-4488-89e9-f93036b839c0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="16e81ea7757acfd269a80695b092c715"; logging-data="10997"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4v5HH65aVZyE1IIypMzPf" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:HAsxfFdljH/FysAgFaxKUhLFxwI= sha1:b44pGtjt4ojNZiTygD0P4N5PudY= Xref: csiph.com comp.lang.c:148855 Bart writes: [...] > For this purpose, address and pointer may be used > interchangeably. Technically, in C a pointer is an address with type > information. Technically, in C an address has type information. The standard doesn't have a formal definition of "address", and some of its uses are a little ambiguous, but in most cases it refers to a value of pointer type. For example, the unary & operator "yields the address of its operand". That's a typed value of pointer type. Informally, an address is a value of pointer type (probably excluding null pointer, invalid pointers, and pointers just past the end of an object). -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com [Note updated email address] Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */