What is the difference between unsigned int and signed int in C?
Question :
What is the difference between unsigned int and signed int in C?
A signed integer can store both the positive and negative values. An unsigned integer can only store the positive value.
For example,
Assuming the size of the integer is 2 bytes.
signed int- 32768 to +32767
unsigned int 0 to 65535