Quine by shinh (C C++ Ruby Python PHP)

 #include/*
'''*/<stdio.h>
main(){char*_;/*'
%q('''
def printf(a,*b):
 print a%b,
');?'#*/
_=" #include/*%c'''*/<stdio.h>%cmain(){char*_;/*'%c%%q('''%cdef printf(a,*b):%c print a%%b,%c');?'#*/%c_=%c%s%c;printf(_,10,10,10,10,10,10,10,34,_,34,10,10,10);%c#/*%c'''*/%c}//'''";printf(_,10,10,10,10,10,10,10,34,_,34,10,10,10);
#/*
'''*/
}//'''

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page