What's a C expert?

Dave Myers dem at mead.UUCP
Sun Aug 27 03:52:13 AEST 1989


In article <4847 at omepd.UUCP> merlyn at iwarp.intel.com (Randal Schwartz) writes:
>In article <338 at mead.UUCP>, dem at mead (Dave Myers) writes:
>[...]
>|    Hmmm....  I don't claim to be a C expert

   Here I go on to prove it. :)

>| 	i[a] == *(i + (a * sizeof(int)))

>...  The scaling happens during the "addition"
>(which isn't really addition) of a pointer and an integer BY
>DEFINITION.  This definition just happens to make the array "operator"
>commutative.

   I am enlightened.  Or rather, I realize I probably should have
figured it out if I had thought harder, but I didn't.  Thank you for
the correction.

>   Just another longtime C hacker...

  Just another shorttime C/C++ progammer.

-- 
David Myers                                             (513) 865-1343   
Mead Data Central            This          Data Fabrication Technology
P.O. Box 933                 space               mead!dem at uccba.uc.edu
Dayton, Ohio  45401          available.             ...!uccba!mead!dem



More information about the Comp.lang.c mailing list