C operator precedence mnemonics
Valentino Herrera
herrera at tegra.COM
Sat Jul 7 03:54:31 AEST 1990
In article <1990Jul4.164402.2072 at craycos.com> pmk at 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 at ulowell.edu |
| "And the meek shall inherit s**t" |
+---------------------------------------------------------------+
More information about the Comp.lang.c
mailing list