Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

What is the difference between functions abs() and fabs()?

Ads
rahhulkumar Offline referral

Posts: 21
Joined: Sep 2015
Reputation: 0

#1
Junior Member
What is the difference between functions abs() and fabs()?
penrix Offline referral

Posts: 46
Joined: Apr 2016
Reputation: 0

#2
Junior Member
These 2 functions basically perform the same action which is to get the absolute value of the given value.Abs() is used for integer values while fabs() is used for floating type numbers.Also the prototype for abs() is under <stdlib.h> while fabs() is under <math.h>.





User(s) browsing this thread: 1 Guest(s)