Main Function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Main Function

Is there any type of main function start with void?

31st Jan 2017, 12:11 PM
AmierAiman 47
AmierAiman 47 - avatar
2 Answers
+ 1
The C++ Standard says main is of type int. There are implementations (i guess the Microsoft C++/CLI implementation is one) that allow main to be void. I would not recommend this.
31st Jan 2017, 12:22 PM
~datell
0
I saw people using that main function to create dll for game hacking
31st Jan 2017, 12:23 PM
AmierAiman 47
AmierAiman 47 - avatar