I came across in a popular C++ blog the following code:
double const x = 1.0;
I know that const double*
and double* const
differ in a way that in the former the value is const while in the other the pointer is const. But what is the difference between double const
and const double
?