C array follies 2

Wayne Throop throopw at rtp47.UUCP
Thu Sep 5 06:29:54 AEST 1985


It is interesting and amusing to observe the code generated by this
function:

        void f( x, y, i )
            int x[], (*y)[], i;
        {
            x[i] = 1;
            (*y)[i] = 2;
        }

It brings home just how inexpensive an indirection can be, if you're
carefull.   :-)
-- 
Wayne Throop at Data General, RTP, NC
<the-known-world>!mcnc!rti-sel!rtp47!throopw



More information about the Comp.lang.c mailing list