Question Detail

COS 102 test topic Objective Question

Question

Consider the integer division expression: `17 / 4` in a C-based syntax environment. What is the evaluated result?
Options
A 4.25
B 4
Correct Answer
C 5
D 1
Correct Answer

Option B is the correct answer.

Detailed Explanation

Integer division truncates any fractional component toward zero, discarding the remainder.

Hint

No hint available

Question Info