Skip to content

Instantly share code, notes, and snippets.

@MadFlasheroo7
Created May 7, 2025 09:06
Show Gist options
  • Save MadFlasheroo7/6f006520c1f314341e2f6f6dc49e50d7 to your computer and use it in GitHub Desktop.
Save MadFlasheroo7/6f006520c1f314341e2f6f6dc49e50d7 to your computer and use it in GitHub Desktop.
Operator Description Associativity
() Parenthetical Grouping N/A
[] () . ++ -- (postfix) Array subscript, Function call & constructor, Structure field or method selector, Swizzle, Postfix increment and decrement Left to Right
++ -- + - ! (prefix) Prefix increment and decrement, Unary plus, Unary minus, Logical NOT Right to Left
* / Multiply, Divide Left to Right
+ - (binary) Addition, Subtraction Left to Right
< > <= >= Relational less than, Relational greater than, Relational less than or equal to, Relational greater than or equal to Left to Right
== != Equality, Inequality Left to Right
&& Logical AND Left to Right
^^ Logical XOR Left to Right
|| Logical OR Left to Right
?: Selection (ternary conditional) Left to Right
= += -= *= /= Assignment, Addition assignment, Subtraction assignment, Multiplication assignment, Division assignment Right to Left
, Sequence Left to Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment