English

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

Advertisements
Advertisements

Question

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

Answer in Brief

Solution

  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
  Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - Review Insight [Page 30]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
Review Insight | Q 5. | Page 30
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×