I
I
Ilya1992018-12-30 13:38:03
C++ / C#
Ilya199, 2018-12-30 13:38:03

What calls the main function?

What does the main function call and where does it return the value 0?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-12-30
@Ilya199

Calls the operating system (roughly speaking). Returns there. And optionally 0 - 0 is completion without error.
For example, if you call another program from your program, then through the OS mechanisms, after the completion of the second program, you will receive what main returned it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question