#include <stdio.h>
void main()
{
m();
}
void m()
{
printf("hi");
}
输出
嗨
警告
main.c:11:10: warning: conflicting types for 'm' [enabled by default]
void m()
^
main.c:7:9: note: previous implicit declaration of 'm' was here
m();
^
为什么即使在定义
m()
之前就调用了它,此程序仍可以成功运行?警告的意义是什么?