Because you didn’t include stdlib.h ( ゜ロ゜)” This is a hidden pit. Because you did not include the header file, there is no function declaration. Without a function declaration, the default return value of the library function is int type. If you add -Wall when compiling, it will clearly tell you that it is not declared.
Because you didn’t include stdlib.h ( ゜ロ゜)”
This is a hidden pit. Because you did not include the header file, there is no function declaration. Without a function declaration, the default return value of the library function is int type.
If you add -Wall when compiling, it will clearly tell you that it is not declared.