main() { f(); } int f( int i, float fl) { printf(\"function\"); }
Why does the above code runs successfully in \'C\' and prints
The error does not show in C because you're not using the proper flags in the invocation of your compiler.
What is your compiler?
If it's gcc, try gcc -std=c99 -pedantic -Werror ...
gcc
gcc -std=c99 -pedantic -Werror ...