213k views
21 votes
Create two functions to calculate the area and circumference of the circle using pointer.

Area (): this function will accept radius as parameter to calculate area of the circle.
Circumference (): This function will accept radius as parameter to calculate circumference.
Write a main function that accept radius value from the user. The user may either choose a calculation of area or circumference of circle (use switch statement to handle the choice). The result will be displayed to the user by respective function calling.
Note: Create constant for PI value.

1 Answer

6 votes

Answer:

View Image

Step-by-step explanation:

I don't see any reason to use a pointer for the question their asking.

Create two functions to calculate the area and circumference of the circle using pointer-example-1
User Floribon
by
4.5k points