K
Keith Thompson
Another even shorter alternative is:
int main(void) (while(1);return 0;}
This program always loses the game on time.
The "return 0;" is not necessary. In C99, reaching the '}' that
terminates the main function is equivalent to "return 0;". In C90, it
merely causes an unspecified status to be returned to the environment,
but that doesn't matter since it can't ever be executed anyway.
And you can save a single character by using "for" rather than "while":
int main(void){for(;
In C90, you can drop the "int "; it's required in C99.
<OT>Running this program on a multi-user system is likely to anger
your fellow users.</OT>