Příklad

int main(int argc, char* argv[])
{
const int constant = 10;
double nonConst;

nonConst = (double) constant;

return 0;
}

Řešení
Pokud je to možné, vyvarujte se přetypování konstantnosti.

int main(int argc, char* argv[])
{
const int constant = 10;
double nonConst;

nonConst = (
const double) constant;

return 0;
}