What is the difference between signed and unsigned int

前端 未结 5 734
闹比i
闹比i 2020-11-30 18:46

What is the difference between signed and unsigned int?

5条回答
  •  悲哀的现实
    2020-11-30 19:23

    In laymen's terms an unsigned int is an integer that can not be negative and thus has a higher range of positive values that it can assume. A signed int is an integer that can be negative but has a lower positive range in exchange for more negative values it can assume.

提交回复
热议问题