What the main function supposed to do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What the main function supposed to do?

5th Sep 2016, 3:52 PM
ahmed
ahmed - avatar
6 Answers
+ 7
The main function is the function that is called when launching your program.
5th Sep 2016, 4:22 PM
Zen
Zen - avatar
+ 1
as zen said which is absolutely right
8th Sep 2016, 2:30 AM
Giridhar V
Giridhar V - avatar
+ 1
idk
14th Sep 2016, 1:04 AM
Talia
0
I bbb
7th Sep 2016, 3:53 PM
Joao Rosa
Joao Rosa - avatar
0
compiler starts execution from main()
9th Sep 2016, 12:25 PM
Padmanabh Deshpande
0
When you run a program, the compiler looks down to the main function, and it accesses whatever it needs to run the main
20th Sep 2016, 11:50 AM
Jonathan Tairov
Jonathan Tairov - avatar