Please see this program:
float area(float);
void main(void)
{
float radius;
printf ("Enter Radius");
scanf ("%d",&radius);
printf ("Area is %f",area(radius));
}
float area (float rad)
{
return (4*3.142*rad*rad);
}
please explain the above program, there no value has been assigned for rad
then what does it mean ?
why it has been used ?
and what is mean by area(radius)
in line 7