Operators


The complete set of C operators may be described as follows:

  1. Arithmetic operators

    Operands are subject to integral promotion.

    The type of the result is related directly to the type of the operand(s).

  2. Bitwise operators

    Operands are subject to integral promotion.

    The type of the result is related directly to the type of the operand(s).

  3. Relation operators

    The real type of the result is always int. The underlying type is treated as Boolean.

  4. Equality operators

    The real type of the result is always int. The underlying type is treated as Boolean.

  5. Logical operators

    The operands are interpreted as Boolean.

    The real type of the result is always int. The underlying type is treated as Boolean.

  6. Assignment operators

    Compound assignment operators exist only for the sets of binary arithmetic and bitwise operations.

  7. Conditional operator

    The 2nd and 3rd operands are subject to integral promotion and balancing (the usual arithmetic conversions) in computing the result.

  8. Other operators

Index