Main Function

main">

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":

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

Famous quotes containing the words function and/or main:

    The press and politicians. A delicate relationship. Too close, and danger ensues. Too far apart and democracy itself cannot function without the essential exchange of information. Creative leaks, a discreet lunch, interchange in the Lobby, the art of the unattributable telephone call, late at night.
    Howard Brenton (b. 1942)

    The Temptress has now been shown here—terrible. The story, Garbo, everything is extremely bad. It is no exaggeration to say that I was dreadful. I was tired, I couldn’t sleep and everything went wrong. But the main reason is, I suppose, that I’m no actress.
    Greta Garbo (1905–1990)