
Degenerated and empty c program code wanted
Quote:
>>#if 0
>>main() {}
>>#endif
>That isn't a valid C program since main() never actually gets defined.
I think it does fit the bill as "a degenerate and empty" translation unit
though. After the preprocessor gets through with it, it boils down to the
same thing as my earlier suggestion (an empty translation unit). I'm not
sure that an empty file is valid (indeed, it generates warnings when I
"compile" one). But that also helps out in the formation of "degenerate"
translation units. This file:
int i;
also clearly fits the bill. Certainly not a program, but the title line
asked for "program code" which, through a twisted interpretation, could
also include code pieces that can be assimilated into a program.
I'm at home, so I say anything I please.