Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mit-eddie!husc6!bunny!krs0 From: krs0@bunny.UUCP (Rod Stephens) Newsgroups: comp.lang.c Subject: Re: Dubious C code Keywords: for switch in case do bananas Message-ID: <6545@bunny.UUCP> Date: 10 Feb 89 19:23:33 GMT References: <1508@zen.UUCP> Reply-To: krs0@bunny.UUCP (Rod Stephens) Organization: GTE Laboratories, Waltham, MA Lines: 7 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.