26.07.2013 Views

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C<br />

Opera<strong>to</strong>r Precedence<br />

Chart<br />

Opera<strong>to</strong>rs are shown in decreasing order of precedence from <strong>to</strong>p <strong>to</strong> bot<strong>to</strong>m.<br />

Opera<strong>to</strong>r Opera<strong>to</strong>r Type Type<br />

Associativity<br />

Associativity<br />

()<br />

[]<br />

.<br />

++<br />

--<br />

++<br />

--<br />

+<br />

-<br />

!<br />

~<br />

( type )<br />

*<br />

/<br />

%<br />

+<br />

-<br />

><br />

>>><br />

parentheses<br />

array subscript<br />

member selection<br />

unary postincrement<br />

unary postdecrement<br />

unary preincrement<br />

unary predecrement<br />

unary plus<br />

unary minus<br />

unary logical negation<br />

unary bitwise complement<br />

unary cast<br />

multiplication<br />

division<br />

modulus<br />

addition<br />

subtraction<br />

bitwise left shift<br />

bitwise right shift with sign extension<br />

bitwise right shift with zero extension<br />

Fig. Fig. C.1 C.1 Opera<strong>to</strong>r precedence chart (part 1 of 2).<br />

left <strong>to</strong> right<br />

right <strong>to</strong> left<br />

right <strong>to</strong> left<br />

left <strong>to</strong> right<br />

left <strong>to</strong> right<br />

left <strong>to</strong> right

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!