Turbo C assumes all functions without a return type, return an int, even though you did not specify a return at all.
Conversely, if you did specify a return type, then it will expect you also to specify the return explicitly, at the end of that function. If the function has a return type of void, then it will give you an error if you specify a return type.
so,
Code:
main() { //int return is assumed and handled by the compiler - OK
}
int main() { //int is specified and return is, as well - OK
return 0;
}
but
int main() { //int return type specified, but not present. Causes a compiler error
}