Difference between unsigned and unsigned int in C

thetna picture thetna · Aug 24, 2011 · Viewed 16.6k times · Source

Could you please make it clear what the difference is between unsigned and unsigned int? Maybe some example code would be helpful.

Answer

Graham Borland picture Graham Borland · Aug 24, 2011

unsigned is a modifier which can apply to any integral type (char, short, int, long, etc.) but on its own it is identical to unsigned int.