why int main?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why int main??

8th Sep 2016, 12:44 PM
Andres Posada
Andres Posada - avatar
4 Answers
+ 1
In C++, main is the function that is executed when launching your program.
8th Sep 2016, 1:09 PM
Zen
Zen - avatar
+ 1
int main is the only function which compiler sees..... if we use any other function it wont operate
8th Sep 2016, 1:24 PM
Shrinivas Deshpande
Shrinivas Deshpande - avatar
+ 1
int main tells the compiler that the where the execution of program begins
13th Sep 2016, 1:52 PM
Twinkle Baisane
Twinkle Baisane - avatar
0
I say this because generally use only the main
8th Sep 2016, 12:56 PM
Andres Posada
Andres Posada - avatar