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 [पृष्ठ ३३]