comma operator: keep away?
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Apr 22 13:42:03 AEST 1989
In article <19913 at iuvax.cs.indiana.edu> bobmon at 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 <stdio.h> for an example.
More information about the Comp.lang.c
mailing list