Awesome C Program
Over lunch today I came across this link on HN: comp.lang.c: For loops help
The request was for a program that would print this:
*
***
*****
*******
*********
*********
*******
*****
***
*
and the reply was this #define M 002354l
#define A 000644l
#define G 000132l
#define I 000322l
#define C 000374l
#define a ;
#define b for
#define c ++
#define d %
#define e int
#define f ,
#define g -
#define h 011
#define i =
#define j {
#define k )
#define l '\n'
#define m main
#define n <
#define o }
#define p >
#define q &&
#define r (
#define s ||
#define t ?
#define u putchar
#define v void
#define w '*'
#define x :
#define y ' '
#define _ /
#define C_O_O_L return
e u r e k a
e
m r
v k j
j j j j
j j j j j
j j j j j j
j j j j j j j
j e z a b r z i
M _ A _ G _ I _ C
a z n G a u r z d h
+ z _ h p M _ A q z d
h + z _ h n M _ G q z _
h n z d h + M _ I q z _ h
p z d h g M _ C t w x y k f
z d h g h + 1 s u r l k f z c
k a u r l k a j j j j j j j j j
j j C_O_O_L M _ A _ G _ I _ C a o
o o o o o o o o o o o o o o o o o o
o o o o
o o o o
o o o o
o o o o
I went ahead and compiled it, works like a charm:
jmhobbs@katya:~/Desktop$ gcc awesome.c
jmhobbs@katya:~/Desktop$ ./a.out
*
***
*****
*******
*********
*********
*******
*****
***
*
jmhobbs@katya:~/Desktop$
So cool.