What is User-Defined Functions?
What will be an ideal response?
1. Describe the syntax and semantics of user-defined functions that return a single result.
2. Present the argument/parameter matching and the allocation/deallocation process that accompany execution of a function call.
3. Emphasize the importance of beginning each function definition with a block comment detailing the function’s purpose and preconditions.
4. Introduce the syntax and semantics of user-defined functions that return no results.
5. Discuss the use of reference parameters in user-defined functions that produce multiple results.
6. Introduce the notion of overloaded functions.
7. Present the C++ scope rules that govern visibility of names.
8. Introduce the concept and usual form of a recursive algorithm.
9. Illustrate recursion by presenting a simple recursive algorithm for the bisection method of approximating a function root in an interval.
You might also like to view...
When in Design view, the Detail section displays a sample of the data
Indicate whether the statement is true or false
When performing a search, you can limit the search to a file property by using a(n) ________ to separate the name of the property from the search term
Fill in the blank(s) with correct word