Hi everyone,
I'm a huge fan of silly code snippets, made up and real ones. Here are some of my favorites:
Code:int getRandomNumber() { return 4; // carefully chosen by rolling a dice }
Code:while(1) fork();
Code:/* no comment */
If your German is a bit rusty, the last one probably needs some explanation: "moin" is generally accepted as short for "Guten Morgen"/"Hallo", which means "Good Morning"/"Hello" in English.Code:#define moin main int moin(int argc, char *argv[]) { // ... }
What else have you got?
Greets,
Philip