Question: In C language create a program follows all those conditions. Define a structure variable pt which represents a point in Cartesian xy-plane using its coordinates

 In C language create a program follows all those conditions. Define

In C language create a program follows all those conditions.

Define a structure variable pt which represents a point in Cartesian xy-plane using its coordinates (x, y). Using pt, define an array of 3 structures called tri which represents the 3 vertices of a triangle in the xy-plane. Write a function with prototype which accepts the tri array as an argument and returns a Boolean value describing if the three points are on the same line. Note: three points are on the same line if . x1 * (y2- y3) + x2 * (y3-y1) + x3 * (y1 - y2)- 0

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!