📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    int i=10; float f=i; What kind of

    typecasting is happening in the above scenario?
    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