Consider the following code:
#include<stdio.h>
int f()
{
printf(" hey ");
return 5;
}
int main()
{
printf("hello there %d",f(4,5));
f(4,5);
return 0;
}
I expected something like too many arguments to function ‘int f()’ but it gives an output even in strict C99 compilation. why is this behavior? But it seems like a C++ compiler gives an error.