conversion of short to unsigned it

Mike Wescott wescott at ncrcae.UUCP
Sun Mar 17 16:37:22 AEST 1985


What's the proper conversion of a short to an unsigned int?
In otherwords should the conversion be a sign extension of the
short treated as an unsigned int after sign extension, or should
there be no sign extension?

Does K&R say anything?

How about the draft C standard?

What's your feeling?



More information about the Comp.lang.c mailing list