Problem

Mark the following statements as true or false: a. To use a predefined function in a pr...

Mark the following statements as true or false:

a. To use a predefined function in a program, you need to know only the name of the function and how to use it.

b. A value-returning function returns only one value.

c. Parameters allow you to use different values each time the function is called.

d. When a return statement executes in a user-defined function, the function immediately exits.

e. A value-returning function returns only integer values.

f. A function that changes the value of a reference parameter also changes the value of the actual parameter.

g. A variable name cannot be passed to a value parameter.

h. If a C++ function does not use parameters, parentheses around the empty parameter list are still required.

i. In C++, the names of the corresponding formal and actual parameters must be the same.

j. Whenever the value of a reference parameter changes, the value of the actual parameter changes.

k. In C++, function definitions can be nested; that is, the definition of one function can be enclosed in the body of another function.

l. Using global variables in a program is a better programming style than using local variables, because extra variables can be avoided.

m. In a program, global constants are as dangerous as global variables.

n. The memory for a static variable remains allocated between function calls.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT