Obscure C code (was Re: Excessive optimization)

blstuart at bellsouth.net blstuart at bellsouth.net
Thu Dec 2 21:28:44 CST 2010


> #include <stdio.h>
> int main ()
> {
>    int i;
>    for (i = 0; i < 14; i++)
>      putchar (i ["Hello, world!\n"]);
> }

That's interesting as a puzzle, but I've seen the converse:

"0123456789abcdef"[i]

in the wild.  I'm pretty sure it was in some of Ken's code.

BLS




More information about the cctalk mailing list