Is it possible to differentiate between 0 and -0?
It depends on the machine you’re targeting. On a machine that uses a 2’s complement representation for integers there’s no difference at bit-level between 0 and -0 (they have the same representation) If your machine used one’s complement, you definitely could 0000 0000 -> signed 0 1111 1111 -> signed −0 Obviously we’re talking about … Read more