Re: Why the address of array equals array.



Rahul wrote:

On Mar 14, 7:27 pm, Matthew Zhou <zhouyan1...@xxxxxxxxx> wrote:
Array name is the representation of the address of the first element
of the array.

Hi,
its like array and &(array+0) or &array[0] are same.

Yes, exactly like that: both statements are false.

(`&(array+0)` isn't legal; you probably mean to leave
out the `&` or put in `*`, yes?)

--
Chris "starring hedgehog" Dollin
Nit-picking is best done among friends.

.



Relevant Pages

  • Re: application.match and multidimensional array?
    ... I'm using several arrays in code; the smaller array keeps a subset ... latter would end up including every element from the source array. ... I'm going through up to 10 iterations where in each case I'm ... know who I listed as my friends, in which case I'll only check to see who I ...
    (microsoft.public.excel.programming)
  • Re: string in an array
    ... The variable named 'array' is a *POINTER*, ... with malloc() or friends calloc() or reallocis to remember how ...
    (comp.lang.c.moderated)
  • Re: [PHP] INSERT Array Values into mySQL Table
    ... I need to INSERT the Values from this array into a mySQL table. ... Rahul Sitaram Johari ...
    (php.general)
  • RE: [PHP] INSERT Array Values into mySQL Table
    ... I need to INSERT the Values from this array into a mySQL ... Rahul Sitaram Johari ...
    (php.general)
  • Re: Using arrays of objects ?
    ... TonyB wrote: ... java.util.Collection and friends make this pretty easy. ... tool but an array is declared with a fixed length, ... you may prefer a HashSet, TreeSet, LinkedList, or some other Collection that ...
    (comp.lang.java)