But why would you do that?

This has to be my favorite "But why would you do that?" piece of code:
int main()
    do return 0; while(false);
What's your favorite? (any language)
A friend of mine, while learning C++, wrote a 100+ line file of uninitialized variables and then did while(true){return 0;} ......last I knew he gave up on programming. Always wondered why he bothered typing that much just to do that, even if it was for learning.
Topic archived. No new replies allowed.