C Language Problem Please Explain Whats wrong with the follo

C Language Problem

Please Explain

What\'s wrong with the following function call: #include double find_scale(double x, int n); int main(void) {double num_1, num_3; int num _2; num_3 = Find_scale(num_1, num_2); return(0);} double find_scale(double x, int n) {return (0);}

Solution

When you are calling the function in the following line :

num_3= Find_scale(num_1,num_2) here the F is capital in the function call whereas in the function definition f used is small.

Hence the function name is case sensetive and it should be same.

The line sholud be written as follows:

num_3= find_scale(num_1,num_2);

C Language Problem Please Explain What\'s wrong with the following function call: #include double find_scale(double x, int n); int main(void) {double num_1, num

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site