5

Write a program whose output is program itself

Comments
  • 3
    As what, plain text, bytecode, binary stream??

    Also, welcome to devRant.
    Formst your post according to the tags and categories.

    Have a good day.
  • 0
    Ah, yes, Quines are a lot of fun!
    I once saw a post where each reply had to include the previous comment's quine inside a new quine, but use a different language!
    The final result was like 150-something nested quines, each using a different language/dialect!
  • 5
    Please do your own homework.
  • 2
    printf("program itself");
  • 0
    Are you asking for samples?
    BAT file for Microsoft OS? Program that can export configuration and then also create another BAT file that be used to import configuration when run in another computer.
  • 4
    Ooh I found a use case:

    @lmgtfy how do I do my homework?
  • 0
  • 0
    cat $0
  • 0
    @kescherRant

    Of course it would go into a script. What else would it be?
  • 0
    @kescherRant

    Well that wouldn't be a program, as the scholastic cheater OP requested. It would just be a command.
Add Comment