A small list of fun valid C/C++ declarations.
auto accident;register voters;static electricity;struct by_lightning;void *where_prohibited;char broiled;short circuit;short changed;long johns;long dong_silver;unsigned long letter;double entendre;double trouble;union organizer;union jack;float valve;short pants;union station;void check; unsigned check;struct dumb by[sizeof member];const ipated;case closed:double or_nothing;short sighted;volatile buggy_code;unsigned anonymous;auto mobile;long trousers_with_holes;char red_to_a_crisp;unsigned long long contract;float y_thing;union commitee;volatile gas;volatile liquid;
/* Borland's additional C keywords */
interrupt ed;near sighted;
1
2
3
4
5
| men() {
goto pub;
pub:
return pissed;
}
|
1
2
3
4
5
| women() {
goto bathroom;
bathroom:
while (1);
}
|
1
2
3
4
5
6
7
| #define middle
middle class businessMan {
ino_t want_to_go_to_work;
#if speeding_to_work_because_you_are_late
off_t o_jail;
#endif
};
|
1
2
3
| class mate {
ino_t wannagotoskool;
};
|
1
2
3
4
| class clown {
!friend class teacher;
friend class mate;
};
|
#define answer_universe 42
Some of these were obtained from the FSF’s email archives of the GNU Project.