我是Linux用户,他开始学习C,我正在尝试编译我输入的这个源:
#include <stdio.h>
main()
{
float c,d;
c = 10215.3;
d = c / 3;
printf("%3.2f\n",d);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
它使用我编写的makefile编译:
cc -Wall -g printf.c -o printf
Run Code Online (Sandbox Code Playgroud)
但是我收到了这个警告:
printf.c:2:1:警告:返回类型默认为'int'[-Wreturn-type]
它编译代码,我得到了所需的输出,但我想了解这意味着什么