I want work with this function and it will take a variable as argument but is not working with me. If i put the number it works but a number in argument does not work.
#include <stdio.h>
#include <math.h>
int main(void)
{
float x;
x = 7;
printf("%f", sqrtf(x)); // produces error "undefined reference to `sqrtf'"
}
int main(void)
{
printf("%f", sqrtf(7)); // works
}