Question: In C++, Write value function fullName that accepts three string parameters as input: first name, middle name, and last name. If the middle name is
In C++, Write value function fullName that accepts three string parameters as input: first name, middle name, and last name. If the middle name is not provided in the function call, use a default value of "Q". The function returns a string that combines the three name parts into one. Show two calls to fullName, one with three arguments and one with two arguments, and the value returned from each call.
a) Function declaration
b) Function calls
|
| Call | Value returned |
| Three-argument call |
|
|
| Two-argument call |
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
