Write a note of explicit conversion
Answers
Answer:
Implicit type conversion is an automatic type conversion done by the compiler whenever data from different types is intermixed. ... When an implicit conversion is done, it is not just a reinterpretation of the expression's value but a conversion of that value to an equivalent value in the new type.
Explanation:
hope it will help you
mark me as brainliest
Explanation:
explicit conversion: the conversion of higher data type to lower data type forcefully by the user.in this conversion,there is a chance of data loss.this type of conversion is also type casting,data demotion, coercion ...
syntax:
for java:
<data type> <variable 1>=<data type><variable 2>;
for python:
<variable 1>=<data type> <variable 2>
for example:
#java
double e=5.5d;
int f=int(e);
system.out.print(f);
op:
5. [here there is a loss of 0.5]
#python
k=6.35
p=int(k)
print(p)
op:
6. [here there is a loss of 0.35]