Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: comma operator: keep away? Message-ID: <10092@smoke.BRL.MIL> Date: 22 Apr 89 03:42:03 GMT References: <19913@iuvax.cs.indiana.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <19913@iuvax.cs.indiana.edu> bobmon@iuvax.cs.indiana.edu (RAMontante) writes: >Is there a circumstance in which the comma operator is required, where >the compound statement cannot be broken into multiple statements? You've got to be kidding -- a comma expression is an expression, whereas multiple statements are not an expression. Thus the comma operator is useful in contexts where semicolon-terminated statements would not be. Look at the definition of putc() in most implementations of for an example.