Challenge: Calculate the Area and Perimeter
Apply what you’ve learned about pointers in the coding exercise in this lesson.
We'll cover the following
Problem statement
You are given the radius
of a circle and the length
and breadth
of a rectangle. Your task is to define the function, areaPeri( )
.
void areaPeri(double radius ,double length ,double breadth ,double *cirArea,
double *cirPeri, double *recArea ,double *recPeri ) ;
Get hands-on with 1200+ tech skills courses.