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


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad