funnyface324 funnyface324
  • 07-08-2019
  • Computers and Technology
contestada

The ______ function returns the absolute value of a long int value.

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-08-2019

Answer:

labs()

Explanation:

The function used to return the absolute value of the integer depends on the type of the integer used.

for the data type int, we can use abs() function.

for data type float, we can use fabs() function.

for data type long int, we can use labs() function.

The meaning of absolute value is to convert negative to a positive value.

for example:

p = -41567L;

labs(p);

it gives the absolute value 41567.

Therefore, the correct answer is labs().

Answer Link

Otras preguntas

Calculate the silver ion concentration in a saturated solutionof silver (I) sulfate (Ksp = 1.4 x 10-5).
Question > calculate the percent composition of each element in the following compounds Th(SO4)2 Ca3(PO4)2 C6H12O6 PLEASE HELP HURRY
what is vena cava.PLEASE ANSWER THIS​
The angle 0 lies in Quadrant III cos 0 =1/6 What is tan ?
please please please answer asap
How can u get from 2 to 21
Where does the salt in oceans come from?
Which algebraic expression represents the phrase "the quotient of negative eight and the sum of a number and three​
15 points! A freight train is being assembled in a switching yard. Car 1 has a mass of 65,000 kg and moves with a velocity of +0.80m/s. Car 2 with a mass o
Which option shows the sequence of events in the correct order? Option 1 Option 2 Option 3 Option 4