Silly question... (when is an array not a pointer)
Wayne Throop
throopw at sheol.UUCP
Wed Jul 11 08:01:32 AEST 1990
From: bbs00068 at uafcseg.uucp (Joel Kolstad)
> MyBytes Mem[];
> MyBytes *Mem;
> This is certainly equivalent,
It is certinly *NOT* equivalent.
This particular Frequently Promulgated Misconception (which is
addressed in lengthy detail on the Frequently Asked Questions list)
arouses my curriosity.
I would appreciate it if Joel (and anybody else who is now, or
who has ever been a holder of this heresy) would email me a short
summary of how they arrived at this error. I'd like to gather a
sampling and see if there is a common reason for making this error.
BTW: in case it isn't clear: an array is NEVER a pointer. In one
(ill considered, in my opinion) irregular place in the language
an array declaration is interpreted as a pointer declaration.
--
Wayne Throop <backbone>!mcnc!rti!sheol!throopw or sheol!throopw at rti.rti.org
More information about the Comp.lang.c
mailing list