a. int to float
b. float to int
c. char to float
d. All are possible
The correct option is (d)
Explanation:
No Explanation
a. Unary
b. Ternary
c. Binary
d. Quaternary
The correct option is (a)
Explanation:
The cast operator is a unary operator which is used to convert one data type into another forcefully.
a. Pointer to Variable
b. Pointer to Pointer
c. Variable to Pointer
d. Variable to Variable
The correct option is (b)
Explanation:
Reinterpret casting is used to convert a pointer of any data type to another pointer of any other data type. Additionally, this does not match the datatype of the value and the pointer.
a. True
b. False
The correct option is (a)
Explanation:
Explanation not found
a. 1
b. 2
c. 3
d. 4
The correct option is (b)
Explanation:
Basically 2 types of convsersion : Implicit Type Conversion and Explicit Type Conversion.
a. Implicit Type Conversion.
b. Both A and B
c. Explicit Type Conversion
d. None of the above
The correct option is (a)
Explanation:
This type of conversion is usually performed by the compiler when necessary without any commands by the user. Thus it is also called “Automatic Type Conversion”.
a. From float to char pointer
b. From negative int to char
c. From double to char
d. From char to int
The correct option is (a)
Explanation:
Conversion of a float to pointer type is not allowed.
a. Narrowing conversions
b. Widening & Narrowing conversions
c. Widening conversions
d. None of the above
The correct option is (b)
Explanation:
Widening & Narrowing conversions following typecasting is accepted by C.