From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner)
Subject: Re: bitwise comparators
Date: 2000/01/19
Date: 2000-01-19T00:00:00+00:00 [thread overview]
Message-ID: <8651jc$9281@news.cis.okstate.edu> (raw)
In-Reply-To: 3885EAA7.FAF93A78@earthlink.net
On Wed, 19 Jan 2000 18:48:11 GMT, Jeff Carter <jrcarter010@earthlink.net> 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
next prev parent reply other threads:[~2000-01-19 0:00 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-15 0:00 bitwise comparators Alexander Van Hecke
2000-01-15 0:00 ` David C. Hoos, Sr.
2000-01-16 0:00 ` DuckE
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` Jeff Carter
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-18 0:00 ` Preben Randhol
2000-01-18 0:00 ` Fraser
2000-01-18 0:00 ` Bertrand Augereau
2000-01-19 0:00 ` Ted Dennison
2000-01-19 0:00 ` Marin D. Condic
2000-01-19 0:00 ` Ted Dennison
2000-01-18 0:00 ` Ted Dennison
2000-01-17 0:00 ` Gautier
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-18 0:00 ` Gautier
2000-01-18 0:00 ` Ted Dennison
2000-01-18 0:00 ` Jeff Carter
2000-01-18 0:00 ` Keith Thompson
2000-01-19 0:00 ` Gisle S�lensminde
2000-01-19 0:00 ` Jeff Carter
2000-01-19 0:00 ` David Starner [this message]
2000-01-19 0:00 ` Keith Thompson
2000-01-19 0:00 ` Ole-Hjalmar Kristensen
2000-01-18 0:00 ` Pascal Obry
2000-01-21 0:00 ` Ada vs. C/C++ (was re: bitwise something-or-other) Mark Lundquist
2000-01-21 0:00 ` Mark Lundquist
2000-01-24 0:00 ` Hyman Rosen
2000-01-17 0:00 ` bitwise comparators David C. Hoos, Sr.
2000-01-17 0:00 ` Gautier
2000-01-18 0:00 ` Keith Thompson
2000-01-19 0:00 ` Ole-Hjalmar Kristensen
2000-01-17 0:00 ` Matthew Heaney
2000-01-17 0:00 ` tmoran
2000-01-17 0:00 ` Mike Silva
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-17 0:00 ` Gautier
2000-01-17 0:00 ` Mike Silva
2000-01-18 0:00 ` Charles Hixson
2000-01-17 0:00 ` Brian Rogoff
2000-02-05 0:00 ` Ashley Deas Eachus
2000-02-05 0:00 ` Jeff Carter
2000-02-06 0:00 ` Andy
2000-02-07 0:00 ` Brian Rogoff
2000-02-09 0:00 ` Robert Iredell Eachus
2000-01-18 0:00 ` DuckE
2000-01-18 0:00 ` Ted Dennison
2000-01-16 0:00 ` Matthew Heaney
2000-01-16 0:00 ` Bryce Bardin
2000-01-16 0:00 ` Jeff Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox