Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!zardoz!dhw68k!arcturus!evil From: evil@arcturus.UUCP (Wade Guthrie) Newsgroups: comp.lang.c Subject: Re: A question of style Message-ID: <6723@arcturus> Date: 11 Dec 89 17:44:28 GMT References: <547@mars.Morgan.COM> <1989Nov30.001947.14883@aqdata.uucp> <427@jhereg.Minnetech.MN.ORG> <565@s5.Morgan.COM> <11740@smoke.BRL.MIL> Organization: Rockwell International, Anaheim, CA Lines: 28 In article <565@s5.Morgan.COM> amull@Morgan.COM (Andrew P. Mullhaupt) writes: >I would like to elaborate: There are no good excuses for the comma >operator . . . and gwyn@smoke.BRL.MIL (Doug Gwyn) responds: >. . .It has uses primarily in macros, occasionally in conditionals. I always thought that an interesting use for the comma was in a for loop when one wanted, say, to create the identity matrix: float array[SIZE][SIZE]; int i,j; /* initialize the whole thing to zero, then to this: */ for(i=0,j=0; i