0% found this document useful (0 votes)
59 views

Operator Precedence

Operator precedence in C-like languages follows specific rules. Postfix operators like [] and . have highest precedence followed by unary operators like ++ and --. Next are multiplicative operators like * and /, then additive like + and -, then relational, equality, bitwise, logical, ternary, and assignment operators have the lowest precedence.

Uploaded by

Susan Thomas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

Operator Precedence

Operator precedence in C-like languages follows specific rules. Postfix operators like [] and . have highest precedence followed by unary operators like ++ and --. Next are multiplicative operators like * and /, then additive like + and -, then relational, equality, bitwise, logical, ternary, and assignment operators have the lowest precedence.

Uploaded by

Susan Thomas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Operator precedence

Operator precedence in descending order


Operator type Postfix Unary Creation or cast Multiplicative Additive Shift Relational Equality Bitwise AND Bitwise exclusive OR Bitwise inclusive OR Logical AND Logical OR Conditional Assignment Operator type [] . (params) expr++ expr-++expr --expr +expr -expr ~ ! new (type)expr * / % + << >> >>> < > <= >= instanceof == != & ^ | && || ? : = += -= *= /= %= &= ^= |= <<= >>= >>>=

You might also like