Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Hans-Bernhard Bröker <HBBroeker@xxxxxxxxxxx>
- Date: Thu, 10 Apr 2008 21:06:16 +0200
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").
.
- Follow-Ups:
- Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Tim Wescott
- Re: Keil c51 interprets &Array as Array. Is that normal?
- References:
- Keil c51 interprets &Array as Array. Is that normal?
- From: Bill Davy
- Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Tim Wescott
- Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Hans-Bernhard Bröker
- Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Tim Wescott
- Keil c51 interprets &Array as Array. Is that normal?
- Prev by Date: Re: Multicycle Instruction Overlapping
- Next by Date: Re: Keil c51 interprets &Array as Array. Is that normal?
- Previous by thread: Re: Keil c51 interprets &Array as Array. Is that normal?
- Next by thread: Re: Keil c51 interprets &Array as Array. Is that normal?
- Index(es):
Relevant Pages
|