%f
format specifier in printf
expects double
type argument. &pirprox
and &pitprox
is of type double *
and you cannot print an address with %f
. Wrong format specifier would invoke undefined behavior.
Change your code snippet
printf("%f\n", &pirprox);
printf("%f\n", &pitprox);
to
printf("%f\n", pirprox);
printf("%f\n", pitprox);