main function
function in C or C++, which is the entry point to execution, which can take either no arguments, two arguments (conventionally named argc and argv), or three arguments (whose third argument is conventionally named env)
References
No reference rows published for this article.
Cite this article
MLA
"main function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/main-function. Accessed 23 November 2026.
Chicago
"main function." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/main-function.
APA
encyclopegia.org. (2026). main function. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/main-function
Accessed November 23, 2026 · CC0-1.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| P646 | /m/03trl7 | Wikidata |
| P3417 | Main-Function-1 | Wikidata |
| P279 | Q2005914 | Wikidata |
| P279 | Q15810910 | Wikidata |