Re: embedded questions!!!
- From: Dave Hansen <iddw@xxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 13:35:51 -0600
On Fri, 13 Jan 2006 19:18:53 GMT in comp.arch.embedded, Jonathan
Kirwan <jkirwan@xxxxxxxxxxxxxx> wrote:
>On Fri, 13 Jan 2006 10:47:45 -0600, Dave Hansen <iddw@xxxxxxxxxxx>
>wrote:
>
>>"a[i]" has *exactly* the same meaning as "(*a + i)" whether a is a
>>pointer or array.
>
>You mean *((a)+(i)). Or perhaps more precisely, to capture usual
Actually, I meant "*(a + i)". Apologies for fat-fingering that. I
think, however, the additional parentheses in *((a)+(i)) are
redundant, at least if a[i] is a well-formed expression.
>unary conversion rules, *((&a[0])+(i)).
Well, no, actually, that's not necessary, and arguably wrong. Consider
i[a], which should be equivalent to a[i].
Regards,
-=Dave
--
Change is inevitable, progress is not.
.
- Follow-Ups:
- Re: embedded questions!!!
- From: Jonathan Kirwan
- Re: embedded questions!!!
- References:
- Re: embedded questions!!!
- From: Rufus V. Smith
- Re: embedded questions!!!
- From: Chuck F.
- Re: embedded questions!!!
- From: John B
- Re: embedded questions!!!
- From: Richard Henry
- Re: embedded questions!!!
- From: Dave Hansen
- Re: embedded questions!!!
- From: Jonathan Kirwan
- Re: embedded questions!!!
- Prev by Date: Re: Ulf, what of these new AVRs? :)
- Next by Date: Re: USB CY7C67300 chip HPI
- Previous by thread: Re: embedded questions!!!
- Next by thread: Re: embedded questions!!!
- Index(es):
Relevant Pages
|