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 calculatefuturevaluedouble monthlyinvestment,
double yearlyinterestrate 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
