Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Program that creates larger versions of itself (quine-variant)

You are to write a program that will output source code that is

  1. Larger than the original program (character wise)
  2. Will print another program larger than itself when run (i.e. the new program is also a valid answer to this challenge) indefinitely

This is code-golf, so shortest answer wins.

Answer*

Draft saved
Draft discarded
Cancel
6
  • 232
    \$\begingroup\$ {].'.~'}.~( ┻━┻ \$\endgroup\$ Commented Feb 23, 2014 at 18:34
  • 2
    \$\begingroup\$ @nitro2k01 my first thoughts exactly :D \$\endgroup\$ Commented Feb 27, 2014 at 12:50
  • 1
    \$\begingroup\$ Sorry I don't think I get the joke about the table can someone please explain? \$\endgroup\$ Commented Mar 27, 2016 at 3:22
  • 1
    \$\begingroup\$ Is "real" in quotes because HQ9+ is not real or because GolfScript is not real, or both? \$\endgroup\$ Commented Sep 13, 2016 at 8:37
  • 1
    \$\begingroup\$ @thepiercingarrow the source code resemble this \$\endgroup\$ Commented Nov 16, 2016 at 14:47

AltStyle によって変換されたページ (->オリジナル) /