In the following C code, function printr
called only with one parameter, But all compiled with no warning on GCC and VS.
I am confused why this is OK? Thanks!
#include <stdlib.h>
#include <stdio.h>
int printr(i, j){
printf("The first parameter %d\n", i);
printf("The second parameter %d\n", j);
return 0;
}
int main(){
printr(3);
return 0;
}