What's a C expert?
Andrew Koenig
ark at alice.UUCP
Fri Aug 25 13:10:27 AEST 1989
In article <338 at mead.UUCP>, dem at mead.UUCP (Dave Myers) writes:
->
-> In article <1336 at atanasoff.cs.iastate.edu> hascall at atanasoff.cs.iastate.edu.UUCP (John Hascall) writes:
-> >In article <6057> paulc at microsoft.UUCP (Paul Canniff 2/1011) writes:
-> >}In article <12214 at well.UUCP> tmh at well.UUCP (Todd M. Hoff) writes:
-> >
-> >}> What do you need to know to be an expert C programmer?
-> >
-> >}How about ... understands why a[i] equals i[a] and CAN EXPLAIN IT,
-> >
-> > a[i] = *(a+i), i[a] = *(i+a), a+i = i+a
-> >
->
->
-> Hmmm.... I don't claim to be a C expert, but let's take a trivial
-> case.
-> a[i] == *(a + (i * sizeof(int) * BIGNUMBER))
-> i[a] == *(i + (a * sizeof(int)))
->
-> Clearly, these are not equal.
You're right, you're not a C expert. a[i] and i[a] truly are
identical. I'll leave it to you to figure out which of your
two `equivalences' aren't.
--
--Andrew Koenig
ark at europa.att.com
More information about the Comp.lang.c
mailing list