Original Post
Is void main() legal C or C++?
Quote:
Original post by Anon Mike
It would be a lot simpler for everybody if the various standards committees would have just allowed void main with the automagic return 0 and required int main to return something like every other function in the world that returns an int but I guess that would just make to much sense...
float main() { return 0.f;}Just Kidding!!!
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more