Main Function | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
+ 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