Multiple choice

What will be the output of the following C++ statement? cout<<4.5%3;

  1. 0

  2. 1

  3. 1.5

  4. 0.5

  5. 5

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct option as the modular division holds the remainder as the result which is nothing but 0.