Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bbotond
on May 26, 2020
|
parent
|
context
|
favorite
| on:
Quines: self-replicating programs (2005)
Maybe it's because I haven't yet had my morning coffee but I find his first example overly complicated. A much simpler and immediately obvious one [from this article](
http://www.nyx.net/~gthompso/quine.htm
):
char*f="char*f=%c%s%c;main() {printf(f,34,f,34,10);}%c"; main(){printf(f,34,f,34,10);}
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: