comma operator
Blair P. Houghton
bph at buengc.BU.EDU
Wed Aug 2 10:29:04 AEST 1989
In article <3553 at buengc.BU.EDU> bph at buengc.bu.edu (Blair P. Houghton) writes:
>In article <1989Jul28.174033.12734 at jarvis.csri.toronto.edu> flaps at dgp.toronto.edu (Alan J Rosenthal) writes:
>>
>>dandb at 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);
>> }
Forget I ever said anything.
--Blair
"Flames welcomed cheerily;
I'm practicing my /dev/null
backhand..."
More information about the Comp.lang.c
mailing list