From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: bitwise comparators Date: 2000/01/19 Message-ID: <8651jc$9281@news.cis.okstate.edu>#1/1 X-Deja-AN: 574829301 References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <85vmn2$ki1$1@nnrp1.deja.com> <38836CF2.AB738B8B@hotmail.com> <3883A414.8559E641@earthlink.net> <3885EAA7.FAF93A78@earthlink.net> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-01-19T00:00:00+00:00 List-Id: On Wed, 19 Jan 2000 18:48:11 GMT, Jeff Carter wrote: >Keith Thompson wrote: >> That's a slight exaggeration. C does have array types and array >> objects. For example this: >> int a[10]; >> declares a as an array of 10 ints, very much like Ada's >> A: array(0 .. 9) of Integer; >> It does not, contrary to popular misconception, declare a as a >> pointer. > >That would explain why a[0] and *a are different notations for the same >thing, and a[2], *(a+2), and 2[a] are also different notations for the >same thing. "int a[2];" is not the same as "int *(a+2);" which is not a legal declaration. "extern int *a;" does not work if a is defined as "int a[2];". Just because the same notation can be used in some circumstaces, and implicit conversion happens, doesn't mean they are the same thing. -- David Starner - dstarner98@aasaa.ofe.org If you wish to strive for peace of soul then believe; if you wish to be a devotee of truth, then inquire. -- Friedrich Nietzsche