Dubious C code

Rod Stephens krs0 at bunny.UUCP
Sat Feb 11 05:23:33 AEST 1989


Very interesting. I tried it on my Ultrix system and it gave veeerrryyy
interesting results. I tried it under VMS and it gave a
Default labels and case labels are valid only in "switch" statements.
Apparently it objected to the "case 1" after the for statement. When I 
changed it so the puts("Bananas!"); was also inside the case 2 it worked
in the expected (boring) way.



More information about the Comp.lang.c mailing list