data types on all parts of the statements are equivalent. When multiple operators
are used in one statement, precedence for the operators must be in place for
statement evaluation. The following table lists the precedence for operators. The
highest precedence is at the beginning of the table; precedence gets lower as you
move down the table.
Operator Type | Operator Syntax |
postfix operators | [] . (params) expr++ expr-- |
unary operators | ++expr --expr +expr -expr ~ ! |
creation | new (type)expr |
multiplicative | * / |
additive | + - |
relational | < > <= >= |
equality | == != |
bitwise AND | & |
shift | << >> |
bitwise exclusive OR | ^ |
bitwise inclusive OR | | |
logical operators (AND, OR) | && || |
conditional | ? : |
assignment | = += -= |
Best Regards,
Hossein Karimi
No comments:
Post a Comment