Xref: utzoo comp.lang.c:30165 rec.arts.books:12486 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!uunet!wang!tegra!herrera From: herrera@tegra.COM (Valentino Herrera) Newsgroups: comp.lang.c,rec.arts.books Subject: Re: C operator precedence mnemonics Message-ID: <1111@batman.tegra.COM> Date: 6 Jul 90 17:54:31 GMT References: <1990Jul4.164402.2072@craycos.com> Reply-To: herrera@batman.UUCP (Valentino Herrera) Organization: Tegra-Varityper, Inc. Billerica, MA Lines: 25 In article <1990Jul4.164402.2072@craycos.com> pmk@craycos.com (Peter Klausler) writes: >> In a lot of cases, C operator precedence sucks. (I can quote K&R saying the >> same thing -- different wording, of course. Lets not argue about this point.) >> How does one deal with it? > >C precedence: > postfix, prefix, multiplication, add, shift, inequality, equality, > bitwise AND, XOR, OR, logical AND, OR, ternary, assignment, comma >It's easy to derive mnemonics to help you remember this. Here's some >possibilities: > > Please put mice and such in each bag, Alice; except, omit > lemmings and opossums - they aren't cute. Perhaps people might add some instances. Even bombastic, aggrevating examples of linguistic assignments are often times antagonistically complicated. Can anyone help? -- +---------------------------------------------------------------+ |Valentino Herrera Tegra/Varityper tegra!herrera@ulowell.edu | | "And the meek shall inherit s**t" | +---------------------------------------------------------------+