A C program is really just a collection of functions. Every C program has a special function named main that is the ``main function''-the place that the computer starts executing commands.

You should remember from your experience with Maple that every function returns a value. This is true for C functions, too. But in C you have to write down what kind of value each function returns-integers, floating point numbers, or whatever.

The word int is short for ``integer.'' The word int before main indicates that the main function returns an integer.

Return to lesson.

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