What does the second const do in the structure below? (it's just an example function).
I understand that the first const makes the function return a constant object. But I can't figure out what the const before the identifier does.
First I though that it returned a constant pointer to a constant object, but I'm still able to reassign the returned pointer, so I guess that isn't the case.
const SimpleClass * const Myfunction()
{
SimpleClass * sc;
return sc;
}