Main Function


In many programming languages, the main function is where a program starts execution. It is responsible for the high-level organization of the program's functionality, and typically has access to the command arguments given to the program when it was executed. Thus main is very important to run your code.

The main function is generally the first programmer-written function run when a program starts, and is invoked directly from the system-specific initialization contained in crt0 or equivalent. However, some languages can execute user-written functions before main runs, such as the constructors of C++ global objects.

Other articles related to "main function":

Lawyers In Poland
... the Treasury at central courts, advocate (Polish adwokat), whose main function is to provide legal assistance, prepare legal opinions and drafts of legislative acts, and ... Polish doradca podatkowy), whose main function is to advise persons in tax matters, represent them before courts and State authorities in tax matters and perform other ...
Main Function - Variants - AHLSL
... In AIGE's AHLSL, the main function, by default, is defined as. ...

Famous quotes containing the words function and/or main:

    ... the function of art is to do more than tell it like it is—it’s to imagine what is possible.
    bell hooks (b. c. 1955)

    It is indeed very possible, that the Persons we laugh at may in the main of their Characters be much wiser Men than our selves; but if they would have us laugh at them, they must fall short of us in those Respects which stir up this Passion.
    Joseph Addison (1672–1719)