comma operator: keep away?
Leslie Mikesell
les at chinet.chi.il.us
Tue Apr 25 04:33:42 AEST 1989
In article <19926 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?
>I said "required", not "useful".
How about the more common:
for (x=0, y=0; x <100 ; x++, y++) {
stuff ...
}
Of course this could also be done other ways - the only thing "required"
in a programming language is an assignment and a test-and-branch operator.
The rest is merely "useful".
Les Mikesell
More information about the Comp.lang.c
mailing list