C Trivia Question

Richard A. O'Keefe ok at goanna.cs.rmit.oz.au
Tue Sep 18 22:25:59 AEST 1990


In article <1990Sep17.214906.20076 at odin.corp.sgi.com>, mtoy at sgi.com (Michael Toy) writes:
> Can you think of a C statement which a compiler accepts that has
> a really long string of C keywords, with no operators between them?

> The best I've come up with is these sets of sequences of six keywords:

You can make such a sequence as long as you want:
	do do ... do ; while (0); ... while (0); while (0);
	1  2	  n    n              2          1
There's a sequence of n keywords (all "do") for any n you want.
-- 
Heuer's Law:  Any feature is a bug unless it can be turned off.



More information about the Comp.lang.c mailing list