### Return without Declared Value

In C++, a return (either explicit or implicit) from main() that is declared to return a value results in an error if no value is returned. A return (either explicit or implicit) from all other functions that is declared to return a value must return a value. In ISO/ANSI C, a function that is declared to return a value can return with no value, with unspecified results.

Function Return Values.