Re: Address of an array = address of its 1st element: undecidable question ?
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Fri, 23 May 2008 01:30:23 -0400
Peter Nilsson wrote:
Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:.... snip ...
If you try to take the value of an array, what you
actually get is the value of a pointer to the first
member of the array. That doesn't mean that an array
is the same as a pointer. If you mean that &array
and &array[0] have the same value, they don't. They
have different types.
What about (void *) &array == (void *) &array[0]?
You should get "syntax error" or equivalent.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
.
- Follow-Ups:
- Re: Address of an array = address of its 1st element: undecidable question ?
- From: Richard Heathfield
- Re: Address of an array = address of its 1st element: undecidable question ?
- References:
- Address of an array = address of its 1st element: undecidable question ?
- From: candide
- Re: Address of an array = address of its 1st element: undecidable question ?
- From: Richard Heathfield
- Re: Address of an array = address of its 1st element: undecidable question ?
- From: Peter Nilsson
- Address of an array = address of its 1st element: undecidable question ?
- Prev by Date: Re: memfrob and strfry ? OT
- Next by Date: Re: Pointer to pointer conversion
- Previous by thread: Re: Address of an array = address of its 1st element: undecidable question ?
- Next by thread: Re: Address of an array = address of its 1st element: undecidable question ?
- Index(es):
Relevant Pages
|