?
What is the result of the expression 7 / 2 in C?
Answer & Solution
Correct Answer:
Option
C
In C, when you perform integer division, as in the expression 7 / 2, it results in the quotient without any decimal places. Therefore, the result is 3.
Option A (2) is incorrect because it doesn't consider integer division.
Option B (3.5) is incorrect because it represents the result of floating-point division.
Option D (3.50) is also incorrect because it represents a floating-point number, which is not the result of integer division.
Option A (2) is incorrect because it doesn't consider integer division.
Option B (3.5) is incorrect because it represents the result of floating-point division.
Option D (3.50) is also incorrect because it represents a floating-point number, which is not the result of integer division.
Join the Discussion
Login to post a comment or share your explanation.
Login