[c++] How does the modulus operator work?