Ray's playground

 

Making Decisions(Chapter 6 of Programming in Objective-C 2.0)

  This is because the conditional operator associates from right to left, meaning that multiple uses of this operator in a single expression, such as in
  e1 ? e2 : e3 ? e4 : e5
  group from right to left and therefore are evaluated as follows:
  e1 ? e2 : ( e3 ? e4 : e5 )

posted on 2010-10-16 10:43  Ray Z  阅读(221)  评论(0)    收藏  举报

导航