+ 1
Can we use void main instead of int main?
In our school we study void main instead of int main and the program is also compiled..
6 Respostas
+ 13
void return type for main() has never been a part of standard C++, and will never be.
https://www.sololearn.com/discuss/288609/?ref=app
+ 5
That's for Turbo C++, extremely outdated...
+ 2
So in which we can use void?
+ 1
Yes ,but do not write return statement in end of main function
+ 1
Yes, you can but do not write return statement in this case
0
Ok ty