Code golf: Reverse quine
Posted
by Eduardo León
on Stack Overflow
See other posts from Stack Overflow
or by Eduardo León
Published on 2009-09-01T22:18:44Z
Indexed on
2010/03/17
22:31 UTC
Read the original article
Hit count: 410
code-golf
|reverse-quine
Write a program that outputs the reverse of its source code as a string. If the source is
abcd
efg
(i.e., the C string "abcd\nefg"
)
Then the output should be
gfe
dcba
(i.e., the C string "gfe\ndcba"
)
Bonus points for using esoteric languages such as brainf*ck.
*EDIT:** Removed the unnecessary \0 characters.+
© Stack Overflow or respective owner