IPB

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

Language:
Русский
English

 Logical Operators


   Operator Operation        Operand types  Result type
   not      Bitwise negation integer type   integer type
   and      Bitwise and      integer type   integer type
   or       Bitwise or       integer type   integer type
   xor      Bitwise xor      integer type   integer type
   shl      Shift left       integer type   integer type
   shr      Shift right      integer type   integer type

not is a unary operator.

If the operand of the not operator is of an integer type, the result is of the same integer type.

If both operands of an and, or, or xor operator are of an integer type, the result type is the common type of the two operands.

The operations I shl J and I shr J shift the value of I to the left or to the right by J bits. The result type is the same as the type of I.

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

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



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