Wednesday, July 7, 2010

Guess the output.

enum Q {a("enum Q { a(%c%s%c); Q(String t) {System.out.printf(t, 34,t, 34);System.exit(0);}}");Q(String t) {System.out.printf(t, 34, t, 34);System.exit(0);}}

Can you guess what is the output/result of the above program without executing it  ? :)

1 comment:

  1. Disappointed, no one even tried. The output is the program itself. Quine time.

    ReplyDelete

Twitter Updates

    follow me on Twitter