Standard C++ Library

The C++ Modulus Operator [mod or % operator]

The C++ Modulus Operator [mod or % operator]

The C++ language provides a built-in mechanism, the modulus operator (mod or %), that computes the remainder that results from performing integer division.

The Standard C++ Library

The 1998 C++ standard consists of two parts: the core language and the C++ standard library; the latter includes most of the Standard Template Library…