Question: Define a structure type point that stores x and y coordinates of a point. Then, use it to define structure type polygon, that stores number

Define a structure type point that stores x and y coordinates of a point. Then, use it to define structure type polygon, that stores number of vertices in a polygon (using int) and vertices coordinates (using point[1000]). Make a function rotate that takes polygon as a parameter by value and returns polygon which is its argument polygon rotated by 90. Test your function.

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!