Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner From: braner@batcomputer.tn.cornell.edu (braner) Newsgroups: comp.lang.c Subject: "exit 0;" - or - "exit (0);" ? Message-ID: <1512@batcomputer.tn.cornell.edu> Date: Sun, 16-Nov-86 23:29:41 EST Article-I.D.: batcompu.1512 Posted: Sun Nov 16 23:29:41 1986 Date-Received: Mon, 17-Nov-86 04:56:47 EST Reply-To: braner@batcomputer.UUCP (braner) Distribution: net Organization: Theory Center, Cornell University, Ithaca NY Lines: 8 [] While K&R explicitly say that exit() is a function, I commonly see the parens dropped. Is that "legal"? Does it work on existing compilers? And while I am asking: how's "if (foo) {...}" vs. "if foo {...}" ? (in the case where "foo" is a variable, say an int used as a flag.) - Moshe Braner, Cornell Univ.