While linking source code, we get linking error for the functions those do not have any body or definition but it properly links library functions even if function bodies never included in source, why?
In normal programming practice if we have declared a function and forgotten to give the definition, it compiles without any errors. However during linking, we get linking error as the body of the function or definition is missing.
However we donít have function definitions/source for library functions like scanf() or printf(). Still these functions do not give linking error. This is because compiler supplies library modules where the definitions have been given as a compiled binary.
You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.