Help!
Next: Type Checking
Up: Functions
Previous: Why Functions?

Definition Before Use

As we have repeated several times, C requires that functions be defined before they are used. Try the following experiment. Move the definition of ``LOG2'' in ``user2.c'' so that it appears below the main procedure. Then try and compile it. What happens?


Help!
Next: Type Checking
Up: Functions
Previous: Why Functions?

Hamlet Project
hamlet@cs.utah.edu