Re: Strange C behaviour
Michael Meskes <email@example.com> writes:
> On Tue, Apr 04, 2000 at 12:30:32PM +0200, Davide Libenzi wrote:
> > All compilers I've used do it in that way and it's right if You think.
> > What value do You expect to receive from &array_var ?
> When I started learning C (okay, that's quite some 15 years ago) I think I
> learned that an array is the same as a pointer. So I'd expect it to be
> pointer to the pointer.
IIRC since K&R pointers are lvalues but arrays aren't.
Siggy Brentrup - firstname.lastname@example.org - http://www.winnegan.de/
email@example.com - http://www.north.de/~bsb/