The result of dividing two integers in C++ is always a(n) _______. 

  • float 
  • char 
  • integer 
  • boolean
In C++, when two integers are divided, the result is always an integer. If there's any fractional part, it gets truncated. For instance, 5 divided by 2 results in 2, not 2.5. To obtain a floating-point result, one or both operands should be a floating-point type.
Add your answer
Loading...

Leave a comment

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