P
Paul
This word is not that word. shame you cannot understand that.Leigh Johnston said:You are confused between an array and an array-type.Noah Roberts said:On 3/14/2011 5:39 PM, Paul wrote:
An array identifier *is* a pointer.
This is false.
int x[] = {1,2,3};
^^ x is an identifier, it identifies an array, but x is not a pointer.
Not much more to say there; it simply is not so. The type of x is
int[3], not int*.
int* p_x = new int[32];
An array identifier is a pointer.
A pointer can point to an array; a pointer is not an array; pretty simple
idea IMO, shame you are unable to grasp it.