0
What is the use of void main
4 Respostas
+ 1
it is used when we are not interesting in define any specific type of function.Because it is not specify type of function
+ 1
'Void' is used, when we can not return something (like a value) to the main. When 'void' keyword is used, at that time 'return' keyword is not used in the program body.
+ 1
void function is like operators in mathematics. consider the derivative operator which does not return any value by itself.
+ 1
http://www.stroustrup.com/bs_faq2.html#void-main
"... void main() { /* ... */ } is not and never has been C++, nor has it even been C. See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1".