◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── This table lists operators by category. Symbol Name or Meaning ────────────────────────Arithmetic─────────────────────────────────── + Addition - Subtraction * Multiplication / Division % Modulus ────────────────────────Relational─────────────────────────────────── < Less than <= Less than or equal to > Greater than >= Greater than or equal to == Equal != Not equal ────────────────────────Assignment─────────────────────────────────── = Assignment += Addition -= Subtraction *= Multiplication /= Division %= Modulus <<= Left shift >>= Right shift &= Bitwise AND ^= Bitwise exclusive OR |= Bitwise OR ───────────────────Increment & Decrement───────────────────────────── ++ Increment -- Decrement ──────────────────────────Bitwise──────────────────────────────────── & Bitwise AND ^ Bitwise exclusive OR | Bitwise OR << Left shift >> Right shift ~ One's complement ────────────────────────Relational─────────────────────────────────── && Logical AND || Logical OR ! Logical NOT ──────────────────────────Pointer──────────────────────────────────── & Address * Indirection :> Base Example: myseg:>bp The pointer bp acts as an offset into the segment specified by myseg. ────────────────────────Conditional────────────────────────────────── ? : Conditional Example: (val >= 0) ? val : -val If the condition is true, the expression evaluates to val. If not, the expression equals -val. ───────────────────────Miscellaneous───────────────────────────────── ( ) Function call [ ] Array element . Structure or union member -> Pointer to structure member (type) Type cast sizeof Size in bytes ───────────────────────────────────────────────────────────────────── See: ◄Operator Precedence Table► -♦-