C array follies 2

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sat Sep 7 16:51:07 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;
>         }

Maybe a bit more explanation would be in order.  This generates
perfectly reasonable code under both C compilers on this VAX:



More information about the Comp.lang.c mailing list