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.
Read MorePosted by M. Saqib | Oct 1, 2017 | C++ Programming: Different Articles on C++ Programming |
The C++ language provides a built-in mechanism, the modulus operator (mod or %), that computes the remainder that results from performing integer division.
Read MorePosted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
Operator Overloading enables us to make the standard operators, like +, -, * etc, to work with the objects of our own data types or classes. We can write a function which redefines a particular operator so that it performs a specific operation when it is used with the object of a class.
Read More