Correct statements of similarities and differences between calling user defined functions and library functions are:

a) Similarity: A call to either requires the function name followed by parenthesized comma separated list of arguments that match the prototype in number and type.
b) Difference: Library functions require inclusion of header files for declarations but user defined functions do not require any declaration before use.
c) Similarity: Either library or user defined functions may be value returning or void functions.
d) Difference: Library functions all provide a return value, user functions must be void functions.
e) Difference Library function declarations (sometimes definitions) come from #include

statements. User functions require either explicit prototypes prior to use or a #include “user_header.h” for the prototypes


a) Similarity: A call to either requires the function name followed by parenthesized comma separated list of arguments that match the prototype in number and type., c) Similarity: Either library or user defined functions may be value returning or void functions., and e) Difference Library function declarations (sometimes definitions) come from #include

statements. User functions require either explicit prototypes prior to use or a #include “user_header.h” for the prototypes

b) and d) are foils that sound reasonable to the poorly prepared student, but are wrong.


Computer Science & Information Technology

You might also like to view...

One reason to pass a parameter by const reference is:

A. we do not want the function to change the values of any data members B. we want changes in the parameter to be reflected back to the calling function C. we want to constantly use pass by reference D. the compiler will catch an attempt to change the value of the parameter

Computer Science & Information Technology

__________ stores a Windows XP file’s attributes inside the object itself.

a. FAT-32 b. NTFS c. FAT d. The premise of this question is false.

Computer Science & Information Technology

Under User Account Control (UAC), which of the following tasks can be performed without supplying administrative credentials?

a. Installing critical updates from Windows Update. b. Installing an application. c. Configuring system settings. d. None of the above.

Computer Science & Information Technology

Which of the following should be used to examine the properties and keys of an object?

A. forEach()loop B. call()method C. for…inloop D. create()method

Computer Science & Information Technology