what does int main() signifies?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what does int main() signifies??

12th Jul 2016, 6:24 PM
dyuti
7 Answers
+ 4
It is the main function of the program....whenever you compile a program at first the main function gets executed then the other functions..... usually main function have a void return type...but in your case it will return an integer value
12th Jul 2016, 7:07 PM
Bijan Kundu
Bijan Kundu - avatar
+ 3
the main function
12th Jul 2016, 6:56 PM
Jaque
Jaque - avatar
0
Simply the Entrance to your program and the end too
12th Jul 2016, 8:16 PM
Vedant Patadia
Vedant Patadia - avatar
0
the program starts here and ends here
12th Jul 2016, 8:16 PM
Vedant Patadia
Vedant Patadia - avatar
0
all answered are correct..
12th Jul 2016, 8:32 PM
meherDev
meherDev - avatar
0
And it's basically used to get the return value of executed code.generally we return 0 in case of success and in other cases we can return any other integer value.
13th Jul 2016, 3:03 AM
Gaurav KS
Gaurav KS - avatar
0
A function gives the output of integer type, thats all, nothing
13th Jul 2016, 7:17 AM
Pramodh Kumar M
Pramodh Kumar M - avatar