Why does a function with no parameters (compared to the actual function definition) compile?

I’ve just come across someone’s C code that I’m confused as to why it is compiling. There are two points I don’t understand. The function prototype has no parameters compared to the actual function definition. The parameter in the function definition does not have a type. #include <stdio.h> int func(); int func(param) { return param; … Read more