Puzzle on unsigned promotions
Chris Torek
chris at mimsy.UUCP
Sun Jul 3 06:39:59 AEST 1988
In article <565 at unh.UUCP> jeff at unh.UUCP (Jeffrey E. F. Friedl) writes:
>... no where in K&R-I can I find where it specifically
>stipulates that the conversion from unsigned short to a larger unsigned
>int is done by zero padding and not sign (sign with an unsigned?) extending.
>... The main problem is K&R's use of terms and fonts.
No, actually, the main problem is that K&R C has only one unsigned
type, namely unsigned int. Unsigned short, unsigned char, and unsigned
long do not exist in K&R 1st ed.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list