मराठी

Give reason whether the following assignment is correct or not. float f = 0.002654132; - Computer Applications

Advertisements
Advertisements

प्रश्न

Give reason whether the following assignment is correct or not.

float f = 0.002654132;

थोडक्यात उत्तर

उत्तर

This assignment is incorrect since the data type for 0.002654132 is double, yet it is assigned to a float variable. The correct assignment will be float f = 0.002654132f;

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.03 Values and Data Types
EXERCISES | Q III. 12. (b) | पृष्ठ ३३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×