Hi,
I have written a program just to check the behaviour of the compiler.
i expected an error in function call statement.
but its not generating any error.
the declaration of function we include to check the type of args and no of args and return value of function.
but its not working as i expected.
please provide comments on this.
float get_float(int num);
int main( void )
{
float f;
f = get_float(12.34);
printf("%f", f);
f = 12.34;
f = get_float(f);
printf("%f", f);
return 0;
}
float get_float( int num)
{
return 12.32;
}