stdlib.h文件

在该文件中有这样的定义:

/* Definition of the argument values for the exit() function */

#define EXIT_SUCCESS    0
#define EXIT_FAILURE    1

 

因此,包含此文件后,main函数可以这样写:

int main()

{

 

      return  EXIT_SUCCESS;

}

你可能感兴趣的:(stdlib.h文件)