Showing posts with label LAB Function. Show all posts
Showing posts with label LAB Function. Show all posts

Sunday, October 11, 2020

, ,

Example Program For Lab() Function In C Programming

 Lab() Function in c programming gives the absolute value of the integer and it return the absolute value of the long integer argument.

Showing program will tell how you can use the LAB function in c programming.

Example Program For  Lab() Function In C Programming
Example Program For  Lab() Function In C Programming

 

Parameters:-

Y − is a integral value. 

Return Value:-

This lab function returns the absolute value of y. 

LAB Function Program Example :-

#include <stdio.h>
#include <stdlib.h>

int main () {
   long int e,d;

   e = labs(64887L);
   printf("Value for e = %ld\n", a);

   d = labs(-1003080L);
   printf("Value for d = %ld\n", b);
   
   return(0);
}

OUTPUT:-

Value for e = 64887
Value for d = 1003080