I don't understand this code which should provide a different behavior in C and C++ ( Can code that is valid in both C and C++ produce different behavior when compiled in each language?)
#include <stdio.h>
struct f { };
int main() {
f();
}
int f() {
return printf("hello");
}
Why can I call f() in C++? Is it the default constructor (which I don't see by the way, is there another one "implicit"?)? In C++ that is not calling the f() function..