[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange C behaviour

Michael Meskes <meskes@debian.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 - bsb@winnegan.de - http://www.winnegan.de/
                  bsb@north.de - http://www.north.de/~bsb/
****** ceterum censeo javascriptum esse restrictam *******

Reply to: