Self-reproducing program (not in C)

utzoo!decvax!harpo!npoiv!alice!rabbit!ark utzoo!decvax!harpo!npoiv!alice!rabbit!ark
Wed Nov 3 16:45:28 AEST 1982


This isn't in C, but it gives an idea anyway:
it's a self-reproducing program in SNOBOL4.

 D = '"'; S = "'"
 A = " OUTPUT = ' D = ' S D S '; S = ' D S D; OUTPUT = ' A = ' D A D"
 B = " OUTPUT = ' B = ' D B D; OUTPUT = A; OUTPUT = B;END"
 OUTPUT = ' D = ' S D S '; S = ' D S D; OUTPUT = ' A = ' D A D
 OUTPUT = ' B = ' D B D; OUTPUT = A; OUTPUT = B;END



More information about the Comp.lang.c mailing list