defines local symbol f. local to file. without static, g is strong. 3rd line declares but doesnt defifne. right way to do things in c : 1. when you write func implemn/defn, you have 2 choices, you want func glbal enuf. if not global, local then declare fucn declare and declare it as static.
- funcs should be static in filewhenever possible.
you can get away without using header files but you should not do that.
every func declaration should be included in header file for a global.
implicit func declar. if global func, pople sized, it should have declration in header file but trouble is that lang doesnt require it. cpp requries it therefore its not an extension of c but a diff language.
make fucnkign header files.
if header files, how does compiler look at functions calls. it looks for dunc declares. you cant overload func names, there is one or none. paramenter list in defn and declare. checks #para and types are compatible. what if compiler doesnt find declaration for func, it makes one up. and assumes return type int always. jeez. cimpiler leaves note for linker, relocation tag, this has to be mapped toa call. that can break down at link time if implicit declareation that compiler made up doesnt match the linker's?. never ignore implicit func declaration warning. PAY ATTENTION TO THESE. main is entry point. lol recursive main?! system calls main. have main call main.