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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?