Why we use int main() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we use int main()

7th Jan 2018, 4:18 PM
Shërîl Kìrü
Shërîl Kìrü - avatar
1 Answer
0
main method is the starting point of every c++ program. Although your program is compiled from top to bottom it is run from main method and outside the main method everything is useless unless you don't use it in your main method.
7th Jan 2018, 4:30 PM
Rishabh Agrawal
Rishabh Agrawal - avatar