Path: utzoo!utgpu!water!watmath!clyde!rutgers!princeton!mccc!pjh From: pjh@mccc.UUCP (Peter J. Holsberg) Newsgroups: comp.lang.c Subject: Associativity -- what is it? Message-ID: <226@mccc.UUCP> Date: 18 Feb 88 15:05:19 GMT Organization: The College on the Other Side of US Route 1 Lines: 29 I find that associativity is a *very* difficult thing for me to explain, undoubtedly because I don't understand it! Would someone come to my rescue? Here's an example (assume that everything's been declared correctly): x = 3 * i ++; Book says that ++ has a higher precedence than *, and that ++ associates from R->L. That makes me think that ++ should be applied first, but I know it isn't. But ???? Also, what does K&R say about these: --- a; - -- a; -- - a; and ---a; - --a; -- -a; Thanks. -- Peter Holsberg UUCP: {rutgers!}princeton!mccc!pjh Technology Division CompuServe: 70240,334 Mercer College GEnie: PJHOLSBERG Trenton, NJ 08690 Voice: 1-609-586-4800