Examveda

Which among the following is never possible as an output for a float?

A. 3.666666

B. 3.666

C. 3

D. None of the mentioned

Answer: Option D

Solution (By Examveda Team)

In C, a float can represent both whole numbers and decimal numbers due to its ability to store values in floating-point format.

Option A: 3.666666 is a valid float representation with precision.

Option B: 3.666 is also a valid float value, just with fewer decimal places.

Option C: 3 is an integer, but it can still be represented as a float (e.g., 3.0).

Therefore, all the options listed are valid float outputs depending on how the float is stored or printed.

Hence, the correct answer is Option D: None of the mentioned.

This Question Belongs to C Program >> Operators And Expressions

Join The Discussion

Comments (1)

  1. Happy Unicorn
    Happy Unicorn:
    5 months ago

    3 is absolutely possible as a result of int division (e.g., 11 / 3)

Related Questions on Operators and Expressions