Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!bloom-beacon!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.lang.c Subject: Re: type *var -- vs. -- type* var Message-ID: <29048@news.Think.COM> Date: 8 Sep 89 18:38:21 GMT References: <4201@ohstpy.mps.ohio-state.edu> Sender: news@Think.COM Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 25 In article <4201@ohstpy.mps.ohio-state.edu> SMITHJ@ohstpy.mps.ohio-state.edu writes: > type* var; >rather than > type *var; They are equivalent. The "*" is a separate token, and whitespace between tokens is not significant. > int* x, y, z; >is equivalent to > int *x, y, z; >rather than > int *x, *y, *z; >as would be intuitive (to me anyway). That's because "*" binds more tightly than ",". If you want to force a particular grouping, use parentheses: (int *) x, y, z Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar