示例代码#include<stdio.h>main() { printf("the returned value: %d
", function);}char function() { return 't'; //return t as character}
输出[error] conflicting types for 'function'[note] previous implicit declaration of 'function' was here
现在,如果返回类型是整数,那么它将起作用。
示例代码#include<stdio.h>main() { printf("the returned value: %d
", function());}int function() { return 86; //return an integer value}
输出the returned value: 86
以上就是在c语言中,如果在函数声明之前调用函数会发生什么?的详细内容。
