---
title: main function
slug: main-function
qid: Q871950
snapshot: main-function-100306-bf7ac08a92263224
content_hash: bf7ac08a9226322470586fcf29dfb76fb4e917b458e957944a40770c8ac3483b
license: CC0-1.0
source: http://www.wikidata.org/entity/Q871950
tags: []
---

# main function

> [!note] Provenance
> Snapshot `main-function-100306-bf7ac08a92263224` · content root `bf7ac08a92263224…`
> Derived from <http://www.wikidata.org/entity/Q871950> · Licensed CC0-1.0

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)


