If the definition of square came after the definition of distance, then the C compiler wouldn't know anything about square when it tried to compile distance. put the definition of a C function before the statements that invoke the function.

Return to lesson.

Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah