R.I.P Dennis Ritchie
R.I.P. Dennis M. Ritchie (1941-2011)
Thank you for giving us Unix and C.
This is my tribute to the late, great dmr, an obfuscated quine in TCPL, which I haven't done any in 6 years.
ripdmr.c
:
1 #include <stdio.h> 2 int r = 20; int b 3 =16 >> 1; int y 4 =16 << 1; int f=4 5 ;int o= 1; int n= 6 8 |1 +2- 1; int 7 P =1 << 1; int 8 M =3 +2; const char* 9 10 dmr 11 12 ="#include%*c<stdio.h>%cint%*cr%*c=%3d;%*cint%*cb%c=16%*c>>%*c1;%*cint%*cy%c=16%*c<<%*c1;%*cint%*cf=4%c;int o=%*c1;%*cint n=%c8 |1%*c+2-%*c1;%*cint%cP =1%*c<<%*c1;%*cint%cM =3%*c+2;%*cconst%*cchar*%c%c%*cdmr%c%c=%c%s%c;int main(){printf(dmr,r,y,n,M,y,P+M,y,r,P+M,y,M,y,n,f,y,b,y,b+o,y,M,y,n,f,y,b,y,b+o,y,P,y,n,n,y,f+M,y,n,P,y,b,y,f+M,y,n,P+o,y,b,y,f+M,y,n,f,y,M,y,P+M,y,n,n,n+P+M,y,n,n,y+P,dmr,y+P,n);return 0;}%c";int main(){printf(dmr,r,y,n,M,y,P+M,y,r,P+M,y,M,y,n,f,y,b,y,b+o,y,M,y,n,f,y,b,y,b+o,y,P,y,n,n,y,f+M,y,n,P,y,b,y,f+M,y,n,P+o,y,b,y,f+M,y,n,f,y,M,y,P+M,y,n,n,n+P+M,y,n,n,y+P,dmr,y+P,n);return 0;}
Output: Same as above.