What is the purpose of the modulus operator (%) in C++? 

  • Multiplication 
  • Addition 
  • Division 
  • Remainder Calculation
The modulus operator (%) in C++ is used to calculate the remainder of a division operation between two integers. It is especially useful when we need to determine if a number is divisible by another.
Add your answer
Loading...

Leave a comment

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