Followup) Computers:Programming:Languages->"easy one"
Posted on 1999-11-01
In the locked question "easy one" under the group "Computers:Programming:Languages", somebody makes the point that you can NOT call "main()" recursively in C++ (only in C) and another contests this point.
Calling "main()" recursively under SunPro CC 4.2 and 5.0 fails, but succeeds under g++ 2.8.1. It supposedly works in Visual C++.
I tried to find a reference to "main()" and "recursive" in Stroustrup 3rd Edition and in Schildt 3rd Edition, and had no luck.
I do not have a copy of the standard. Just wondering if anyone knew if the standard prohbits the recursive calling of main()?