Originally Posted by kalleanka
So i guess its nothing to bather about or?
The program works fine.
It really is something to be concerned about, because the compiler can't check the validity of the arguments you send to the function on the line where you invoke it. The argument list is not checked and the compiler just generates code that passes everything you give it in the invocation without making a fuss. Furthermore, implicit function declarations take the form "extern int function_name()", so anything they return will be cast to an integer. This is the only reason why your code works, because you are expecting an integer back. If you made your function return a float or something else other than an int or char (just for example's sake) I bet it wouldn't work. This is why function prototypes are important, and why header files and the #include pre-processor directive were introduced.