I couldn't understand with main method | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I couldn't understand with main method

28th Oct 2018, 4:01 PM
amit patel
amit patel - avatar
2 Answers
+ 2
Just as the name suggests, main() is the starting point of all programs. You may have a million methods in your code. But in building real programs, they start from main(). If you don't have a main() you'll get an error message
28th Oct 2018, 4:22 PM
Dlite
Dlite - avatar
+ 2
Thanks for your answer
29th Oct 2018, 1:16 AM
amit patel
amit patel - avatar