Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!bunker!allen From: allen@bunker.UUCP (C. Allen Grabert) Newsgroups: comp.lang.c Subject: Something new in C syntax Keywords: ifdefs comments Message-ID: <4586@bunker.UUCP> Date: 27 Jan 89 16:30:49 GMT Organization: Bunker Ramo, an Olivetti Company, Shelton, CT Lines: 20 I encountered a block of code similar to the one below, with "jjj" NOT defined to the preprocessor, and, essentially, could not figure out why the first "printf" did not appear. I have since decided that the ifdef's do NOT remove the action of the comment delimiters. I did not write the code, but thought, like the author, that the first "printf" should not have been commented out. Anyone like to comment on why it works the way it does?? main() { #ifdef jjj /* #endif printf("hello world\n"); #ifdef jjj */ #endif printf("goodbye cruel world\n"); }