Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!unmvax!ncar!ames!ucsd!orion.cf.uci.edu!uci-ics!zardoz!tgate!ka3ovk!drilex!axiom!linus!chance!ccel From: ccel@chance.uucp (CCEL) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <63244@linus.UUCP> Date: 11 Aug 89 17:10:07 GMT Sender: news@linus.UUCP Reply-To: rtidd@mitre.arpa Organization: MITRE-McLean Software Engineering Laboratory Lines: 18 >I have also written code something like this: > >linked_list_node_t *p; >if ( p && ( p = p->next, p ) ) > /* something */ I've never seen this format, how does exactly does this work? >No doubt there are other ways to do it, but I don't see this as a sin. Wouldn't this produce the same result: if (p && ( p = p->next ) ) ?? Randy Tidd MITRE-McLean CCEL Lab rtidd@mitre.arpa ccel%community-chest@gateway.mitre.org #define DISCLAIM TRUE