Practice mode C Language

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

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

Links and website addresses are not allowed in comments.