As described in the previous answer, main is the name of the ``main function'' in a C program. In C, as in Maple, the arguments to a function are listed in parentheses after the the function name.

If a C function doesn't accept any arguments then you have to say so by writing an empty list of arguments after the function name. In our case, the main function doesn't take any arguments, so we have to write this:

      int main()

In a few lessons we'll talk more about functions in C. For now just follow the outline and write ``int main()'' in your C programs.

Return to lesson.

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