By dotCore
via operator-precedence.com
Submitted: Feb 10 2013 / 01:46
Although many sources incorrectly place the ternary- and assignment operators on two seperate levels, they in fact share the same precedence level. Note, however, the right-to-left associativity of both, which allows an unparenthesized ternary operation to be assigned to a variable.
Add your comment