Question: write a c program. pls help. c3> 4. [10 points] Write a program which will do the following: a) Show how to declare a tag
![write a c program. pls help. c3> 4. [10 points] Write](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f8ffdcf408b_46066f8ffdc79064.jpg)
write a c program. pls help.
c3> 4. [10 points] Write a program which will do the following: a) Show how to declare a tag named complex for a structure with two members, real and imaginary of type double. b) Use the complex tag to declare variables named cl, c2, and c3. c) Write a function named make_complex that stores its two arguments (both of type double) in double Kol a complex structure, then returns the structure [Note: The function declaration for the make_complex function looks like struct complex make_complex(double real, double imaginary); d) Write a function named add_complex that adds the corresponding members of its arguments (both complex structures), then returns the result (another complex structure). [Note: The function declaration for the add_complex function looks like struct complex add_complex(double real, double imaginary)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
