C Functions

In the previous lesson you learned about the most basic ``building blocks'' that you can use to create a C program--namely, program statements. Every statement in a program is an individual instruction to the computer. By writing down a sequence of statements, you can create a complete program.

Statements are the basic building blocks for all C programs. But in order to easily create even moderately complex programs, you need to use bigger blocks. You have already explored the need for functions in the context of Maple. In this lesson you will begin to see how to exploit user-defined functions to create larger C programs.

Click on the button below to copy today's example files into your own examples directory (i.e., the directory named examples inside your home directory).

EXECUTE Click to copy the example files.

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