Home Segments Index Top Previous Next

423: Sidetrip

Whenever you use the return function inside main, the effect is as though you had used exit with the same argument supplied to return. If main has neither a return statement nor an exit statement, the main statement is compiled as though the final statement were return 0;, which is equivalent to exit (0);.