- 2
void main()can not run
4 Respuestas
+ 5
In C++, main function should NEVER return a void. Always make it return an int (or some other stuff depending on the case). This is to ensure that your main can start properly, and end properly. Also mainly to prevent bugs. Google and readup about it more.
- 1
in sometimes the void main()can run and why?
- 2
There is no hard and fast rule about not returning void in main(). What is the programme anyway? There must be some other error.