The following horror acts in C:
myFunc()
{
return 42; // return type defaults to int.
}
But what about in C ++? I can not find a link to it anyway ...
My compiler (Codegear C ++ Builder 2007) is currently accepting it without warning, but I have comments that this is a bug in C ++.
Roddy source
share