When using a floating point constant in C, what's the difference between using E and e (or G and g, for that matter)?
For example, what's the difference between
1.575E1
and 1.575e1
?
Isn't C supposed to be a case-sensitive language? If there's no difference between using E and e, why's that?
I've looked it up online and on the textbook I'm using and haven't been able to figure it out.
CodePudding user response:
There is no difference. 1.575E1
is the same as 1.575e1
.
Just like there is no difference between 0xa
and 0xA
—they are both equal to 10
, and have the same type.
In C, identifiers are case-sensitive. Identifiers are names of functions, types, variables, etc.