You must log in or # to comment.
Should return 0;.
>What is C++? A miserable huge pile of "should"s
Not needed, main in C++ implicitly returns 0 if there is no return
Should ≠ Needs to
You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.