Namespaces
Variants
Actions

Talk:c/language/main function

From cppreference.com

[edit] First Sentence

I think I finally understand freestanding and hosted execution environments. Let's see. Is the first sentence correct? Is it really true that "every C program contains ... main"? I read on StackOverflow that C programs written for freestanding execution environments have an entry which is specified in the documentation of an embedded device, such as a microcontroller, a point expressed in so many words later in this essay. Newatthis (talk) 06:21, 14 July 2016 (PDT)

this page also says "The name and type of the entry point to any freestanding program (boot loaders, OS kernels, etc) are implementation-defined". So yes, the first sentence could use the word "hosted". --Cubbi (talk)