Question

float i=10; int f=i; What kind of typecasting is happening in the above scenario a ?

A Typecast Correct Answer Incorrect Answer
B Downcasting Correct Answer Incorrect Answer
C Upcasting Correct Answer Incorrect Answer
D Both 1 and 2 Correct Answer Incorrect Answer
E None of the above Correct Answer Incorrect Answer

Solution

as float is having  wider range than integer with more precision.

Practice Next

Relevant for Exams:

ask-question