Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Tek) 9/26/83; site orca.UUCP Path: utzoo!watmath!clyde!cbosgd!cbdkc1!desoto!cord!hudson!bentley!hoxna!houxm!mhuxr!ulysses!allegra!mit-eddie!godot!harvard!seismo!hao!hplabs!tektronix!orca!graham From: graham@orca.UUCP (Graham Bromley) Newsgroups: net.lang.c Subject: re: how is size of unsigned int defined? Message-ID: <1260@orca.UUCP> Date: Thu, 20-Dec-84 12:41:30 EST Article-I.D.: orca.1260 Posted: Thu Dec 20 12:41:30 1984 Date-Received: Sun, 23-Dec-84 00:47:24 EST Organization: Tektronix, Wilsonville OR Lines: 13 > Does anyone know if unsigned int is defined to be the same size as > long int, or int? I couldn't find this in Kernighan and Ritchie. An unsigned int is what it says: an unsigned int. There is also an unsigned short and unsigned long (or unsigned short int and unsigned long int if you like). Some implementations also have an unsigned char for byte sized unsigned integers. An unsigned int may actually be the same size as an unsigned long (e.g. on a VAX, both 32 bits) or as an unsigned short (e.g. on a PDP11, both 16 bits). But an unsigned object is always by definition the same size as its signed counterpart. gbgb aka the longjmp artist