// the same error does not happen if i use int instead of float in function.
#include <stdio.h>
#include <stdlib.h>
int main()
{
float a;
printf("\nEnter any number");
scanf("%f",&a);
float b = sq(a);
printf("\nthe square of %f is %f",a,b);
}
float sq(float x)
{
float y;
y = x*x;
return y;
}
//error: conflicting type for sq