I know that the integer values 0
and -0
are essentially the same.
But, I am wondering if it is possible to differentiate between them.
For exam
To simplify i found it easier to visualize.
Type int(_32) is stored with 32 bits. 32 bits means 2^32 = 4294967296 unique values. Thus :
unsigned int data range is 0 to 4,294,967,295
In case of negative values it depends on how they are stored. In case
In case of One's complement value -0 exists.