Which operator will give the remainder of a division operation?
- /
- *
- +
- %
The '%' operator in C++ is called the modulus operator. It is used to determine the remainder of a division operation between two integers. For example, '7 % 3' will return 1 as the remainder.
Loading...
Related Quiz
- Creating user-defined exceptions in C++ can be achieved by inheriting the _______ class.
- If an exception is thrown and not caught anywhere in the program, function _______ is called.
- In a situation where multiple if conditions are true, the _______ block will be executed in C++.
- What is the output of the logical NOT (!) operator when applied to a non-zero operand?
- What does the term “Diamond Problem” refer to in the context of C++ inheritance?