I tried it in VC++6 and I didn't even get a warning, so it seems to me it has to be defaulting to int, which just happens to match the return type in the function definition, so no error.almost every compiler in existence seems to take a default return type of int with nothing more than a warning.