Consider this code:
int main() { int e; prn(e); return 0; } void prn(double x,int t) { }
Why does this code contain the following warnings and errors?
m.c:9: warning: conflicting types for ‘prn’ m.c:5: note: previous implicit declaration of ‘prn’ was here
Should the "undefined" function be used?
In C99, it should receive an undeclared functional error.
C89/90 . , , int, , . , , . , , undefined. .
int
, . prn(e), , prn - int prn(int). , void prn(double, int). .
prn(e)
prn
int prn(int)
void prn(double, int)
, , . , . prn , , undefined .
C89 . , , int prn(). ( ), .
int prn()
, " ", " ". , ( ), .
C99 "" . , C89 C-. , C , .