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
Get step-by-step solutions from verified subject matter experts
