Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 6 (Q.No. 16)
16.
One drawback to returning an error code from a function is _____
functions cannot return error codes
error codes must be integers, and some functions can't return an integer
a function can return only one value, so it can return only the error code
a function that returns an error code will identify all returns as errors
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Ayesha... said:   3 years ago
Another drawback to returning an error code from a function is that any error code returned by the function must be of the same type as the return type of the function.

Post your comments here:

Your comments will be displayed after verification.