To answer this question, we need to understand the concept of type conversion in programming.
Type conversion refers to the process of converting a value from one data type to another. In most programming languages, certain conversions are allowed, while others may not be possible or may result in loss of information.
Let's go through each option to understand why it is correct or incorrect:
Option A) int to float - This option is possible because it involves converting an integer value to a floating-point value. This conversion is allowed, and the integer value can be represented as a floating-point number.
Option B) float to int - This option is possible because it involves converting a floating-point value to an integer value. This conversion is allowed, but it may result in the loss of the decimal part of the floating-point value.
Option C) char to float - This option is possible because it involves converting a character value to a floating-point value. This conversion is allowed, and the character can be represented as its corresponding ASCII value, which can be stored as a floating-point number.
Option D) All are possible - This option is incorrect because there is one conversion that is not possible. The correct answer is D because not all conversions are possible.
The correct answer is D. This option is incorrect because there is one conversion that is not possible.