3.14 的类型是 double
3.14f 的类型是 float
3.14l 的类型是 long double
C语言标准是这么说的
An unsuffixed floating constant has type double. If suffixed by the letter f or F, it has type float. If suffixed by the letter l or L, it has type long double.
[此贴子已经被作者于2016-11-7 09:00编辑过]