常量声明的好奇心

Const declaration curiosity

好的,我正在做一些书中的练习,我看到了这个声明

float f, const c =9.9;

起初我以为这是一个编译错误,但是我进入VS2013测试了一下,并没有抛出错误。我什至可以在声明后修改 c 变量。我想知道为什么以及如何可能,在这种情况下,编译器甚至使用 const 关键字做什么?

I would like to know why and how is this possible,what is the compiler even doing with the const keyword in this case?

它没有编译它。不适用于 C++14, nor C++11, nor C++03, not even C.