0
Why int main() not void main()
3 Respostas
0
so the main function can return a value to end the program, 0 is normal termination, any other is abnormal.
0
Int main() is just a new standard, because it's thought it's best for every function to return a value. There's not much difference and you just look cooler if you follow the standard and use int instead of a void.
0
you can use void also but without return