The use of unsigned int

Paul Siu paul at tredysvr.Tredydev.Unisys.COM
Sat Feb 9 05:18:29 AEST 1991


The most commonly use, and commonly returned type in C is probably int.  
In some cases, wouldn't it be more appropriate if unsigned int was used
instead, such as when you are indexing an array, or returning a length?

I heard that int is usually declared as the most efficent type in C, would
using unsigned int cause any problems such as slow things down or cause
type-conversation problems?

Paul Siu
paul at tredysvr.tredydev.unisys.com



More information about the Comp.lang.c mailing list