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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!