Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!csd4.milw.wisc.edu!uakari.primate.wisc.edu!ark1!nap1!ames!uhccux!munnari.oz.au!otc!softway!stephenf From: stephenf@softway.oz (Stephen Frede) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <1938@softway.oz> Date: 6 Aug 89 05:54:28 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <918@helios.toronto.edu> <44cb6f10.f9df@gtephx.UUCP> Organization: Softway Pty Ltd, Sydney, Australia Lines: 20 > Can anybody tell me if there is a usage where the comma is 'better'. Just to add another example to the fray while ( printf("enter a number: "), scanf("%f", &num) == 1 ) { ... /* calculations on num */ } Regards, - Stephen Frede Softway Pty Ltd, P.O. Box 305, Strawberry Hills, NSW 2012, AUSTRALIA Phone: +61 2 698 2322; Fax: +61 2 699 9174; Telex: AA27987 ACSnet: stephenf@softway.oz UUCP: ...!uunet!softway.oz!stephenf