Re: Keil c51 interprets &Array as Array. Is that normal?
- From: Hans-Bernhard Bröker <HBBroeker@xxxxxxxxxxx>
- Date: Fri, 11 Apr 2008 16:07:33 +0200
Tim Wescott wrote:
On Thu, 10 Apr 2008 21:06:16 +0200, Hans-Bernhard Bröker wrote: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").
You're disagreeing with yourself, sir.
I'm reasonably sure I'm not. But feel free to expand on your brief judgement.
.
- 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
- 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: Keil c51 interprets &Array as Array. Is that normal?
- Next by Date: Re: How to tell how fast a car is going?
- 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
|