I am trying to write a program that will compute an angle and magnitude of a given complex number. I have therefore declared an array of 2 floats in which  stores the real part and  the imaginary part. My code looks as follows:
However I am getting an error:
float magnitude(float c);
void arc(float c, int *arcn);
printf("Enter real part > ");
printf("Enter imaginary part > ");
printf("Magnitude: %f", magnitude(complex));
printf("Angle: %f", owned);
float magnitude(float c)
temp = sqrt(c*c + c*c);
void arc(float c, float *arcn)
*arcn = atan(c/c);
What is wrong with the program? Please help.
main.c(19) : error C2440: 'function' : cannot convert from 'float ' to 'float'
I know I could use a return statement in the second function, but I do not want to. The whole purpose of this program is to excercise functions which return a value, and which manupulate values passed by a pointer.