What is the meaning of the following?

Posted by vj on Stack Overflow See other posts from Stack Overflow or by vj
Published on 2010-04-06T02:55:19Z Indexed on 2010/04/06 3:03 UTC
Read the original article Hit count: 292

Filed under:
|

int sampleArray[] = {1,2,3,4,5};

I understand that the sampleArray now points to the first element of the array.

However, what does it mean when I say &sampleArray ? Does it mean I am getting the address of the sampleArray variable? Or does it mean a two dimensional array variable?

So, i can do this:

int (*p)[5] = &sampleArray?

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about arrays