Possible Duplicate:
How come an array’s address is equal to its value in C?
In the situation:
int x = 5;
unsigned char myArray[sizeof (int)];
This line...
memcpy (&myArray , &x , sizeof (int));
... is producing identical results to:
memcpy (myArray , &x , sizeof (int));
I am very much a novice to C++, but I was under the impression that arrays are just a pointer to their data. I was shocked when &myArray was working identical to myArray. I would have thought it would be trying to copy to the ADDRESS of the pointer, which would be very bad!