Question: A programmer defines the following: int CalcRoute ( int x = - 1 , int y , int z ) . . . What is

A programmer defines the following: int CalcRoute(int x =-1, int y, int z)... What is true for the following call: CalcRoute(2,3)?
Group of answer choices
Error: Any default parameters must always end the parameter list
The call will yield x of 2, y of 3, and z of -1
The call will yield x of -1, y of 2, and z of 3
Error: If any default parameters are defined, all parameters must have default values

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!