Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Uses of "short" ? Message-ID: <5933@utzoo.UUCP> Date: Fri, 6-Sep-85 12:35:51 EDT Article-I.D.: utzoo.5933 Posted: Fri Sep 6 12:35:51 1985 Date-Received: Fri, 6-Sep-85 12:35:51 EDT References: <486@houxh.UUCP> Organization: U of Toronto Zoology Lines: 11 > What are the reasons for using the type short in C ? ... > Specifically... on machines where sizeof (int) = sizeof (short). Sloppiness in this is common (although not nearly as disastrous as being sloppy on machines where sizeof(int) == sizeof(long)!). The main reason for distinguishing between the two is portability, i.e. making your programs work on machines which violate this property as well as machines which satisfy it. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry