I am well aware of the difference between 0 and 0.0 (int and double).
But is there any difference between 0. and 0.0 ( please note the . )?
Thanks a lot in advance,
Axel
There is no difference. Both literals are double. From the C++-Grammar:
fractional-constant:
digit-sequenceopt . digit-sequence
digit-sequence .
See: Hyperlinked C++ BNF Grammar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With