Which of the following operators is used to determine the remainder in C++?

  • % (Modulus)
  • & (Bitwise AND)
  • * (Multiplication)
  • N/A
The % operator, also known as the modulus operator, is used in C++ to determine the remainder of the division of one integer by another. For example, 5 % 2 equals 1 because 2 divides into 5 twice with a remainder of 1.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *