Author: Gareth McCaughan
Date: 15:30:45 01/20/02
Go up one level in this thread
On January 19, 2002 at 19:47:38, David Rasmussen wrote:
> I have yet to see an example, besides for the sizeof _feature_,
> where arrays are _not_ the same as constant pointers.
foo.c:
int a[10];
foo.h:
extern int * a;
will get you a linker error (if you're lucky) or
completely broken behaviour (if you're not) when
you try to use |a| from something that includes foo.h .
typedef int T1[3];
typedef int * T2;
Types |T1| and |T2| are not equivalent; for instance,
T1 x[10];
T2 y[10];
makes |x| and |y| quite different things.
--
g
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.