In CC the result of executing 1fmodx 100 where x is any posi
In C--/C++, the result of executing 1+fmod(x, 100), where x is any positive number is always in the range 0-100 inclusive 1-101 inclusive 1-99 inclusive None of the above
Solution
Answer is (d) None of the above
Reason :
for fmod (x,100 ) ; the minimum answer is 0 and maximum answer is 99
so 1 + fmod (x,100) ; the minimum answer is 1 and maximum answer is 100
Therefor the range is 1-100 which is not in the list
