In C, what is the value of the expression 17 % 5?
Correct answer C. 2
Explanation
The modulus operator gives the remainder after integer division. 17 divided by 5 is 3 with a remainder of 2, so 17 % 5 equals 2.
Answer checked How we write and check questions
Discussion