Question: Suppose you have two functions with the following function declarations: double cool _ fun ( double , double ) ; / / 1 double cool

Suppose you have two functions with the following function declarations:
double cool_fun ( double , double); //1
double cool_fun (double , int ); //2
Which function definition should be used in the following function calls? (Write the function number in the box, 1 or 2)
double x, y(1.0);
x = cool_fun ( y,6.0);
1
x = cool_fun (5,6);
2
x = cool_fun (5,6.0);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!