This is part of a code I am working on. If you need me to post the whole code I will. When I try to compile it tells me "incompatible type for argument 2 of 'par_complex'.

The other floats are for the rest of the problem by the way.Code:void read_complex(float *z) { printf("Enter a complex number:"); scanf("%f%f",&z[0],&z[1]); } void par_complex(float *z,float *mag,float *ph) { *mag=sqrt(pow(z[0],2)+pow(z[1],2)); *ph=atan(z[1]/z[0])*180/3.14159265; } int main(void) { float z[2]; float z1[2]; float z2[2]; float z3[2]; float *p_phase,*p_magnitude,phase,magnitude; p_phase=&phase; p_magnitude=&magnitude; read_complex(z1); par_complex(z1,p_magnitude,p_phase); printf("The magnitude is %f and the phase angle is %f.",magnitude,phase);