The C++ Modulus Operator

Introduction to Modulus When we divide two integer numbers we will have an equation that looks like the following: A/B = Q Remainder R where A is the dividend B is the divisor Q is the quotient R is the remainder Sometimes, we are only interested in what the remainder...

Operators Overloading

What is Operator Overloading Operator Overloading enables us to make the standard operators, like +, -, * etc, to work with the objects of our own data types. So what we do is, write a function which redefines a particular operator so that it performs a specific...