हिंदी

In what way float initialisation is different from double type initialisation? - Computer Applications

Advertisements
Advertisements

प्रश्न

In what way float initialisation is different from double type initialisation?

संक्षेप में उत्तर

उत्तर

  1. 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. 
  2. For example, 
    float f = 0.0F;
    double d = 0.0D;
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.03: Values and Data Types - Review Insight [पृष्ठ ३०]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.03 Values and Data Types
Review Insight | Q 5. | पृष्ठ ३०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×