Main Function | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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