+ 1

Can there be no decimal point in a floating point number

Eg. Can we give statements like: float var=41; double var=2996; etc.,

16th Oct 2020, 12:29 PM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
1 Answer
+ 5
Yes, you can. And it is known as implicit type casting or type promotion.
16th Oct 2020, 1:46 PM
Minho
Minho - avatar