Path: utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps Newsgroups: comp.lang.c From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: comma operator Message-ID: <1989Jul28.174033.12734@jarvis.csri.toronto.edu> References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <10562@smoke.BRL.MIL> <1989Jul24.194646.3012@nc386.uucp> <5630@pt.cs.cmu.edu> Date: 28 Jul 89 21:40:33 GMT dandb@k.gp.cs.cmu.edu (Dean Rubine) writes: >I also occasionally use the comma to save braces: > if((f = fopen(file, "r")) == NULL) > fprintf(stderr, "Can't open %s\n", file), exit(2); Funny, I use braces to save commas: if ((f = fopen(file, "r")) == NULL) { fprintf(stderr, "Can't open %s\n", file); exit(2); }