Use <complex.h> ( Borland C compiler)
Use the function " double imag( complex x)
this returns the imaginary part of complex number x
similarly "double real(complex x)
this returns the real part of complex number x
you can assign these values to any other double variable