ExamVeda
Login
Home
Operators and Expressions
?

What is the result of the expression 8 / 3 in C?

Answer & Solution
Correct Answer: Option A
In C, when you perform integer division, as in the expression 8 / 3, it results in the quotient without any decimal places. Therefore, the result is 2.

Option B (2.67) is incorrect as it would be the result of floating-point division.
Option C (3) is incorrect because it would be the result of rounding up in floating-point division.
Option D (3.5) is incorrect because it would be the result of floating-point division.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.