1.

The abs() function computes the absolute value __________(a) a floating number(b) an integer number(c) a double number(d) all of the mentionedI got this question at a job interview.The above asked question is from General Utilities topic in section C Library of C

Answer»

The correct choice is (B) an integer number

The explanation: int abs (int i);

The abs() FUNCTION is used to COMPUTE the ABSOLUTE value of an integer i. If the result cannot be REPRESENTED, the behavior is undefined.



Discussion

No Comment Found

Related InterviewSolutions