Header File :
- Stdlib.h
- Math.h
long labs( long num );
No of Parameters : 1 Parameter : Long Return Type : Long
What it Does ?
- The function labs() returns the absolute value of long.
- Labs calculates the absolute value of a long number.
#include < stdio.h>
#include < math.h>
int main(void)
{
long result;
long x = -12345678L;
result= labs(x);
printf("number: %ld abs value: %ld\n", x, result);
return 0;
}

0 comments
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email