is Main() function necessary in C++ program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

is Main() function necessary in C++ program?

i read somewhere, in C programming Main() function is not necessary... but i don't know about C++.. could you please anybody tell me the answer.... thank u in advance

30th Jun 2016, 3:06 AM
Sidhu
Sidhu - avatar
2 Answers
+ 1
main() is necessary in both C and C++.
4th Jul 2016, 10:16 PM
Mihai Dancaescu
Mihai Dancaescu - avatar
0
yes it is the starting function of a program
5th Jul 2016, 6:32 AM
Michael Aries Malaca
Michael Aries Malaca - avatar