18.1 The Main Function

The identifier main is special. It must be used as the name of a function that will be the first function to execute in a program. You must always have one and only one function called main in your programs. Code associated with main, however, is not the first code to execute after Reset. Additional code provided by the compiler and known as the runtime start-up code is executed first and is responsible for transferring control to the main() function.