What error occurs if an input argument is outside the domain over which the mathematical function is defined?
Answer: A
Correct answer: domain error
A domain error occurs when an argument lies outside the set of values for which the function is defined - sqrt(-1) or asin(2). The function returns an implementation-defined value and sets errno to EDOM. A range error is the other case: the argument is fine but the result cannot be represented.
Please log in or register to report this question.