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.

 Vote 0

Similar topics related to this section

l-value, struct and array, function declaration and definition, calling conventions, calling convention of C,C++ and PASCAL, library function linking, call-by-value and call-by-reference, parameter passing call-by-value, parameter passing call-by-reference, structure as function argument,

# C Programming Language (Prentice Hall Software)
# Let Us C Paperback - 2006 by Yashavant Kanetkar
# Understanding and Using C Pointers Core techniques for memory management
# Data Structures Using C and C++ Paperback - 1998
# Data Structures In C Paperback - August 11, 2008 by Noel Kalicharan