Social Icons

10 July 2012

0 Associavilty of operators in C

When an expression contains two operators of same precedence the tie between them is settled using the associativity of operators.
Types of Associativity
  • Left to Right
  • Right to Left 
Left to Right means that the left operand must be unambiguous(it must not be involved in any other sub-expression).
Right to Left means that the right operand must not be unambiguous.

Examples:
  1.  5/3*6
  2. i=j=6

0 comments:

Post a Comment

Hey this is a test comment

Related Posts Plugin for WordPress, Blogger...