Re: regarding type promotion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Harvey Chapman <hchapman@xxxxxxxx> writes:

> Bob Plantz wrote:
>> Another rule I gave them is "multiplication and division have higher
>> precedence than addition and subtraction; use parentheses in all other
>> cases."
> ++
>
> I used to always get tripped up in embedded code because "==" has
> precedence over "&" which I do not believe is intuitive to most
> people.

That's why gcc warns about it, with -Wparentheses, which is part of
-Wall.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux