Beispiel

function(){

}

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

nonConst = (
const double) constant;

return 0;

}

Lösung
Geben Sie immer den Rückgabetyp einer Funktion an.

void function(){

}


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

nonConst = (
const double) constant;

return 0;

}