C语言中取绝对值函数的区分

头文件为 #include<math.h>

int 型
int abs(int x);

long 型
long labs(int x);

浮点数 float double
double fabs(double x);
原文地址:https://www.cnblogs.com/IT-hexiang/p/4084606.html