Dennis Ritchie

Joe Zeff joe at zeff.us
Thu Oct 13 19:42:20 UTC 2011


On 10/13/2011 12:32 PM, Andre Robatino wrote:
> Andre Robatino<robatino<at>  fedoraproject.org>  writes:
>
>> The return value is undefined without the return statement.
>
> Although looking at my copy of K&R 2, the early examples don't include the
> return statement either (it's used later, though).
>

IIRC, Unix was first designed to run on machines with very limited 
memory.  Assigning a value that wasn't going to be used would have been 
regarded as a waste of resources in those days.


More information about the users mailing list