The return keyword returns the specified value, and exits the function. In C/C++, returning 0 from main indicates success.