My idea of the main function

I think the main function is the function that gets called when the program is run and all the user written functions must include in the main() function in order for them to be executed.

1 Like

Hi Hannu, Welcome to the community and the course. I really hope you enjoy it.

You’re absolutely right about the main function. :smiley:

main() function is where execution of the program starts after linking and compilation process successfully completed.

It’s really where it starts when you run the program.

Privacy & Terms