Question: Why is the following function declaration invalid? double calculate _ future _ value ( double monthly _ investment, double yearly _ interest _ rate =

Why is the following function declaration invalid?
double calculate_future_value(double monthly_investment,
double yearly_interest_rate =4.5, int years);
Group of answer choices
If you code a default value for one parameter, you must code them for all parameters.
If you code a default value for one parameter, you must code them for all parameters before that parameter.
If you code a default value for one parameter, you must code them for all parameters after that parameter.
You cant code default values in function declarations.

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!