| < Day Day Up > |
|
Describe in your own words the definition of a function.
List and describe the three characteristics of a good function.
What is the difference between a function’s interface and its implementation? What constitutes a function’s interface? What constitutes a function’s implementation? Why is it important or desirable to separate a function’s interface from its implementation?
What is the purpose of the #ifndef, #define, & #endif preprocessor directives as they apply to header files?
List at least three benefits to giving functions good names.
In what two ways can arguments be passed to functions? What is the difference between the two ways? What advantages or disadvantages are associated with each way?
What is the difference between an automatic local variable and a static local variable?
What is meant by the phrase, "Maximize Cohesion — Minimize Coupling"?
Describe how functions can be overloaded.
Given the following function pointers describe what type of function each can point to:
(void)(*fun_ptr)(); (float)(*fun_ptr)(int, char*, float); (char*)(*fun_ptr)(float, float);
| < Day Day Up > |
|