1

We want to round off x, a float, to an int value, The correct way to do is

Correct Answer: y = (int)(x + 0.5)

Make the most of this question

This page focuses on one C Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

C Programming MCQs MCQ: We want to round off x, a float, to an int value, The correct way to do is | Extra Education