I have a query with below code. How does the below code gets interpreted as per K&R c? There is no compilation error and the code runs just fine. I have used -traditional in build option in codeblocks. Searched around for a while but could not get a satisfactory answer.
void func(int);
int main(void) {
func(10);
return 0;
}
void func(void){
}