ILE C/C++ Language Reference

Division /

The / (division) operator yields the algebraic quotient of its operands. Throwing away the fractional part is often called truncation toward zero. The operands must have an arithmetic or enumeration type. The right operand may not be zero: the result is undefined if the right operand evaluates to 0. For example, expression 7 / 4 yields the value 1 (rather than 1.75 or 2). The result is not an lvalue.

The usual arithmetic conversions on the operands are performed.

Related References


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]