资料介绍
C语言库函数大全abs Synopsis #include int abs(int j); Description The abs, function computes the absolute value of an integer j.If the result cannot be represented, the behavior is undefined. 1 Returns : Returns the absolute value Example :
#include void main(void) { int i = -4; printf("The absolute value of %d is %d\n",i,abs(i)); } The absolute value of -4 is 4
1
The absolute value of the most negative number cannot be represented in two’s complement.
access Synopsis #include int _access(const char *path,int mode) ; Description The access function, when used with files, determines whether the specified file exists and can be accessed as specified by the value of mode. When used with directories, _access determines only whether the specified directory exists; since under W