I am surprised that a file containing the following lines of code is successfully compiled and linker produces an executable. I thought that all functions, except main, must have a valid return statement unless the return type is void.
int foo(){}
double bar(){}
int main(){}
What am I missing?