You have always been a jerk Tony, and you are not that clever.
Today of all days. Any c snippet is welcome.
From: ard at p850ug1.demon.co.uk
Subject: Re: Dennis Ritchie has died
To: cctalk at
classiccmp.org
Date: Thu, 13 Oct 2011 21:14:34 +0100
for(int i=0;i<14;i++)
putchar(i["hello world\n"]);
Not very complex, but figuring out how it works i fun :-)
What's to 'work out'? The argument to putchar looks a bit odd, but IIRC,
A[i] is a shorthand for *(A+i), and addition is commutitive (even when it
involves pointers). So that's just indexing an array of chracters (the
string constant) using i.
-tony