The C compiler needs to know where execution is to begin. By definition, the primary function, main, is the first function to be executed. Other functions can be named almost anything that you want. A typical program has a large number of functions that you have written. The C compiler searches for the function named main and compiles the program in a manner to ensure that main is the first function executed.
No comments:
Post a Comment