Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>% modulus operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 %                       Modulus Operator

 x % y                   Produces the remainder when x is divided by y

    The % operator produces the remainder of x divided by y.  Neither
    operand may be of type float.  Type conversion is performed as
    necessary, using the usual arithmetic conversions.  Example:

           z = 10 % 3           /* z = 1 */


See Also: conversions / *

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson