I ma Singleton
My hood.
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:
Deepak
July 15, 2010 at 6:05 AM
Disappointed, no one even tried. The output is the program itself. Quine time.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Twitter Updates
Twitter Updates
follow me on Twitter
Disappointed, no one even tried. The output is the program itself. Quine time.
ReplyDelete