Jump to content

Talk:Operator precedence: Difference between revisions

(Maybe examples would help?)
 
(→‎maybe a little more specific?: A link plus example.)
Line 12:
 
I could implement either of them by associating from left to right. In the first case, I would be doing bottom-up association, in the second case I would be doing top-down association. --[[User:Rdm|Rdm]] 18:20, 24 September 2012 (UTC)
: From [http://en.wikipedia.org/wiki/Operator_associativity here], given the expression without parenthesis of a + b + c then if '+' is left associative it should be evaluated as (a + b) + c, which I think is what was meant by "associate from left to right". You can add brackets to make the evaluation order explicit, the associativity is used when you don't. --[[User:Paddy3118|Paddy3118]] 20:12, 24 September 2012 (UTC)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.