]hello guys,
i write a c programe
my prob is if i write the statement "float aa ;" that meanss aa is a variable of float type & i pass this value in a function its not work shown a error.
can u plz tell the reason why it creates a problem plz explain in detail.?
i write a c programe
Code:
main()
{
extern int fun(float);
int a;
a=fun(3.14)
printf("%d",a);
getch();
}int fun(aa) // ------>prob here if i write "float aa" in place of aa then it works otherwise error
float=aa;//---------> if i write this statement before the int fun(aa) then this programe also show an error.not getting "aa" a float type
{
return((int)aa);
}
can u plz tell the reason why it creates a problem plz explain in detail.?
Comment