What is % stand for in C++?

Hi, I'm pretty much new to C++ and programming. Anyway I was reading my programming book and in one of the examples they use % in the code, and I couldn't find out what it means.
The line of code in the book was
n = n % 1000
% stand for modulus. It basically acts as a division sign '/' but it returns the remainder. For example, say you do 10 % 3. 3 times 3 is nine so the remainder would be 1. Another way to think of it is like 10 / 3 gives you 3 and one third. The one is in the one third is your remainder.
oh, that clear things up. Thanks for the quick reply.
You are welcome.
Topic archived. No new replies allowed.