Check out example codes for "difference between unsigned and signed int c++". It will help you in understanding the concepts better.

Code Example 1

//Difference between unsigned and signed variable types

unsigned int x; //Can hold zero & positive numbers

signed int y; //Can hold negative, zero, and positive numbers

Learn ReactJs, React Native from akashmittal.com