Oct 14 2011

Print this Post

clarity is not a virtue

Picking up my copy of the second edition I was reminded of the old obfuscated c contests. One of the earliest (anonymous) entries was this tribute to K&R’s famous printf(“hello world\n”);

int i;main(){for(;i[“]<i;++i){–i;}”];read(‘-‘-‘-‘,i+++”hell\
o, world!\n”,’/’/’/’));}read(j,i,p){write(j/p+p,i—j,i/i);}

c is not known as flexible for nothing.

Permanent link to this article: http://baldric.net/2011/10/14/clarity-is-not-a-virtue/