Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!quintus!nair From: nair@quintus Newsgroups: comp.lang.c Subject: Comma Operator Keywords: order of evaluation, comma operator, function call Message-ID: <922@quintus.UUCP> Date: 14 Jan 89 02:37:47 GMT Sender: news@quintus.UUCP Reply-To: nair@quintus () Organization: Quintus Computer Systems, Inc. Lines: 19 What should this print? int x, y; printf("%d %d\n", (x = 1, y = 2), x, y); Shouldn't it be equivalent to: int a, x, y; a = (x = 1, y = 2); printf("%d %d %d\n", a, x, y); Is there any justification in the first one printing 2 1 0 Is there God? Why am I here? :-) :-) Anil Nair Please reply to nair@quintus.uucp or ...!sun!quintus!nair