Computer Science, asked by tehe1, 5 hours ago

int n = (int)((5+4)/2.0); what is the type of casting shown in the example

Answers

Answered by NotPrash
0

Answer:

you are int casting to a float

Answered by presentmoment
0

The answer is integer-type conversion.

Explanation: In the above-mentioned question, the float type is converted into the integer type.  

In python, there are two types of Type Conversions.

Explicit→ in this, the user has to change the data type by using various functions like int(), float(), eval().

Implicit → In implicit typecasting, the interpreter automatically converts the data type without user intervention.

int() is used to convert into the integer type.

float() is used for converting into float type.

Similar questions