Question: please fix my code These are the errors i am getting This is the problem statement I belive i am using c99 verison of c
please fix my code
These are the errors i am getting
This is the problem statement

I belive i am using c99 verison of c coding
\#include typedef struct \{ double real; double imag; \} complex; complex readd_complex() \{ complex z; printf("Enter the real and imaginary parts of the complex number separated by a space:" ; scanf("\%lf \%lf", \&z.real, \&z.imag); return z; 3 complex add_complex (complex a, complex b) \{ complex result; result.real =areal+breal; result.imag =a.imag +b.imag; return result; \} int main() \{ int n=2; complex Z[n]; int i; for (i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
