ON20points) Define a structure called circle that has a field called Name as character array of 20 characters field call
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
ON20points) Define a structure called circle that has a field called Name as character array of 20 characters field call
ON20points) Define a structure called circle that has a field called Name as character array of 20 characters field called X a double number that represents the coordinate of the center, field called Y a double number that represents the y coordinate of the center, and held called R that represents the radius of the circle b) define a function called Area that takes a circle us parameter and returns the area of that circle c) define a function called Max that takes the first parameter as an array of circles and the second parameter the size of that array. The function returns a pointer to the circle that was largest area d) write a program that reads the information of N circles, where N is asked to be entered by the user, the program should print the name of the circle that has largest area.