valid program?
Maarten Litmaath
maart at cs.vu.nl
Thu Mar 23 05:02:58 AEST 1989
#define a()/
#define b()*
main()
{
a()b() is this ANSI conformant? b()a()
exit(0);
}
/*
* Doesn't K&R2 say comments are handled in the preprocessing phase?
* Our 4.3BSD and SysV cc's accept this program
* (/lib/ccom strips comments too).
*/
--
Modeless editors and strong typing: |Maarten Litmaath @ VU Amsterdam:
both for people with weak memories. |maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.std.c
mailing list