1.

Which statement is true regarding abs() and labs()?(a) The abs() function is similar to the labs() function, except that the argument and the returned value each of them have type long int(b) The abs() function is not similar to the labs() function, except that the argument and the returned value in both functions have type long int(c) The abs() function is similar to the labs() function, except that the argument and the returned value each have type short int(d) The abs() function is not similar to the labs() function, except that the argument and the returned value in both function have type short intThe question was asked by my school teacher while I was bunking the class.My question is from General Utilities in portion C Library of C

Answer»

The correct answer is (a) The ABS() FUNCTION is similar to the labs() function, except that the argument and the RETURNED value each of them have type LONG INT

Easiest explanation - long int labs(long int i);

The abs() function is similar to the labs() function, except that the returned value and argument each are of type long int.



Discussion

No Comment Found

Related InterviewSolutions