If you compile a function in a seperate source file and then use it in another file, do you need a prototype for that function in any file wherein it is called or just in the original one?
shut the fuck up you fucking piece of shit n00b. go read the fucking manual before you post your gargle here.
Name:
Anonymous2011-08-07 10:40
I'm up to page 70 in K&R and it is still not explicitly stated The book speaks of function definitions, but as a prototype can be omitted one could argue it is a declaration rather than a definition. I am just asking whether a prototype in the file in which the function appeared in is 'inherited' by other files that invoke the function from that file.
Those aren't standard C header files. Now go back to serving another customer you nowhere bitch.
Name:
Anonymous2011-08-07 18:52
>>8
And more to the point you uneducated faggot, if you are gonna give out uniformed advice, at least tell the OP to use include guards *before* and *after* the non standard header files. Btw, this is how a lot of real world C code gets written and compiled. But you would have only known this if you worked a real programming job.