+ 2

Benefits of using void main(), instead of int main()?

are there any benefits?

23rd Sep 2016, 7:47 AM
Hector Sulbaran
Hector Sulbaran - avatar
3 Respuestas
+ 3
None. You have the oposite. Some compilers won't accept void main(). Only int main. The int return of the main is the exit status of your program with 0 meaning success. Hope it was helpful.
23rd Sep 2016, 12:06 PM
Vinícius Dias
Vinícius Dias - avatar
+ 2
Well in void function doesn't have to return a value
5th Jan 2017, 1:16 PM
Mrityunjay Jha
Mrityunjay Jha - avatar
0
so what is the diffrent void with int? im newbie here
4th Jan 2017, 4:03 AM
Zulfikar Rahman
Zulfikar Rahman - avatar