How can someone not know that the array variable name is a constant pointer to the array data... elementary shit.
Name:
Anonymous2012-09-02 17:33
>>40
yes, the point was that a constant pointer is still a pointer, and a pointer is a value that is stored and accessible somewhere in memory. An array can be thought of as just a value, the address of where it is allocated. The value of the array (it's address) has no place of storage that you can access.
&p[0] == p == *&p == *&p will hold for all pointer values
You're both wrong. The array name is treated semantically as a constant pointer to non-constant data, but it's not an actual pointer in that it's a separate location in memory that stores the address of the array it points to. It sits there with the array itself and you can treat it as a constant pointer.
Boring topic.
You guys are stupid as hell, I said that a is a pointer IN THE FUNCTION, arrays in function declarations are interpreted as pointers, never did I say that int a[5] is a pointer.