Re: Strange C behaviour
Michael Meskes <firstname.lastname@example.org> 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 - email@example.com - http://www.winnegan.de/
firstname.lastname@example.org - http://www.north.de/~bsb/