Question: n C language . Make a structure to model a line by its two endpoints Head, and Tail. Write a function CompareLines that takes two

n C language .
Make a structure to model a line by its two endpoints Head, and Tail. Write a function CompareLines that takes two lines. It returns either of 3 values, -1, 1, and 0. It returns O if the difference in the lengths of the lines is less than 0.001 It returns 1 if the first line is longer than the second line. It returns - 1 if the first line is shorter than the second line. In the main function, test your function for all three cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
