adplus-dvertising
frame-decoration

Question

One drawback to returning an error code from a function is _____

a.

functions cannot return error codes

b.

error codes must be integers, and some functions can't return an integer

c.

a function can return only one value, so it can return only the error code

d.

a function that returns an error code will identify all returns as errors

Answer: (c).a function can return only one value, so it can return only the error code

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. One drawback to returning an error code from a function is _____

Similar Questions

Discover Related MCQs

Q. The two parts of a function are the

Q. The actual arguments cannot he

Q. The function stricmp("Jose", "JOSE") will return _____

Q. A predefined function that may be used to handle memory allocation errors is

Q. The _____ function returns the uppercase equivalent of a character

Q. Typing the function's name as Main, rather than main, is an example of

Q. A function argument is

Q. A function that is prototyped as double calculate(int num); may______

Q. Passing a variable pointer as a constant _____

Q. Recursive Functions

Q. Any output manipulator function you create _____

Q. To pass an array by reference, you

Q. Which is a good reason for passing a variable's address to a function?

Q. Which function is most likely to have procedural cohesion?

Q. The function printDataMembers() is mot likely a(n) ________

Q. The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____

Q. A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)

Q. Student senior(); is a(n)_________

Q. Programmer-defined functions can be

Q. The functions go in the _____ section of a class definition