main function

0001-01-01

In a computer program, the main function is typically the starting point of a program.

On other platforms, main functions may be named differently. For example DllMain is used to designate the main function of a DLL and WinMain is the main function of a Windows GUI application.

C/C++

int main(int argc, char *argv[], char *envp[]) { ... }

Python

if __name__ == "__main__":
   do stuff