C Trivia Question

Tim McDaniel mcdaniel at adi.com
Wed Sep 19 01:05:19 AEST 1990


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?

According to Kernighan and Richie (and They Should Know), "sizeof" is
an operator.  It's a pity, because
   sizeof sizeof sizeof sizeof sizeof sizeof ... sizeof sizeof 0
is such an appealing candidate.
--
Tim McDaniel                 Applied Dynamics Int'l.; Ann Arbor, Michigan, USA
Work phone: +313 973 1300                            Home phone: +313 677 4386
Internet: mcdaniel at adi.com                UUCP: {uunet,sharkey}!amara!mcdaniel



More information about the Comp.lang.c mailing list