Precedence of GNU C++ extensions >? and <? (min/max operators)

Bob Plantz plantz@cds1.net
Sat Mar 5 16:27:00 GMT 2011


On 3/5/2011 2:07 AM, Jeremy Hall wrote:
> Hi,
>
> Does anyone know the exact priority of these operators?  Its not
> mentioned in the
> description of the extension as far as I can see.
>
> Thanks
> Jeremy
I always told my students that multiplication and division have
higher precedence than addition and subtraction. Use
parentheses everyplace else. Code readability was part of
their grade in my classes.

--Bob




More information about the Gcc-help mailing list