IPB

> Precedence of Operators
Чат
Форум
Загрузка...
 

Language:
Русский
English

 Precedence of Operators


   Operators    Precedence   Category
   @ not        First (high) Unary operators

   * / div mod  Second       Multiplying operators
   and shl shr

   + - or xor   Third        Adding operators

   = <> < >     Fourth (low) Relational operators
   <= >= in

Rules of precedence

  1. An operand between two operators of different precedence is bound to
     the operator with higher precedence.
  2. An operand between two equal operators is bound to the one on its left.
  3. Expressions within parentheses are evaluated before being treated as a
     single operand.

Operations with equal precedence are normally performed from left to right, although the compiler might at times rearrange the operands to generate optimum code.

See Also

 
 К началу страницы 
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"