Monday, August 8, 2011

Chapter 2, question 5

5.  C offers two types of functions.  What are they, and how are they different?

User-defined and library functions.

User-defined functions are written by me.  I have the source code for them, and can change them.  Library functions were written by someone else.  Sometimes I don't have the source code for them, and they are supplied as an object file or as a built-in compiler function regardless.

There is a standard library defined for the C programming language, which should conform as much as possible to the standard library specification.  On the other hand, I can create whatever user-defined functions I want.

No comments:

Post a Comment