Operator Associativity and Hierarchy

This tip submitted by Avinash on 2011-09-24 05:39:06. It has been viewed 8860 times.
Rating of 5.5 with 45 votes


Which expression will be solved first?

here * and / are of same hierachy, then the rule of associativity applies, this rule says, solve the operators in the order they come, when they are in same hierarchy.
this will be the solution


More tips

Help your fellow programmers! Add a tip!