Vidyalelo
Computer Science · Q260

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 260

Q260

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
Answer
D.
a function that returns an error code will identify all returns as errors

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board