Re: Keil c51 interprets &Array as Array. Is that normal?



Tim Wescott wrote:

Yes it is a pointer to an array of 10 chars. No it is not a pointer to char. There _is_ a difference, but the compiler is well aware of it and will seamlessly cast from pointer-to-array-of-N-char to pointer-to-char.

Erm, no. Not really.

Pointers to incompatible types are themselves incompatible with each other, so there's no implicit conversion (what you call "seamlessly casting").
.