The variable "rad" is local to the area function. Whatever float is passed in to the area function is called "rad" for the scope of that function.
Your line 7 where it has "area(radius)", it's taking the radius input from the scanf line and passing that variable to the area function.
printf ("Enter Radius");
printf ("Area is %f",area(radius)); // Call the area function and pass in
float area (float rad) // Function that takes in a single float and calls it rad
Functions/methods/procedures are pretty necessary parts of C, so it's something you might want to keep reading on until you fully understand how they work.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...