Conversion or Casting..........
Hi
I think i got a superb question.:)Let me explain u first.
Widening Conversion:::
A conversion that accommodate wider range of values than the original type.e.g.,
int in=25;
double d=in; //is legal
because int in is 32 bit and double d is 64 bit.
int > double
My Question:::
According to defination of Conversion , how it is possible to assign long value to float with out casting?
long lng=10;
float fl=lng;//it is legal. why?
because long is 64 bit and float is 32 bit.
Is there any Duke $ for a superb question. lmao :)
Thank you

