Advertisements
Advertisements
प्रश्न
In what way float initialisation is different from double type initialisation?
संक्षेप में उत्तर
उत्तर
- A float type variable is initialised with a fractional value as 0.0L whereas, a double type variable is initialised with a fractional value as 0.0D. The difference between initialisations is the suffix, i.e., L and D respectively.
- For example,
float f = 0.0F;
double d = 0.0D;
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?