Depends on your definition of &#x27;needed&#x27; --- if you don&#x27;t return 0 from main, your program will exit with an undefined status code, which means that if you use it from a shell script or makefile weird things might happen because your program may be considered to have failed.