G
Greenhorn
Hi,
Is two's complement always used as a storage method or is it computed
while computing the expression involved.
e.g., int a = -2, b = 3, c = 4, d;
d = b - c;
Here, is always 'a' stored as two's complement of '2'?
or
is always '-c' (two's complement of c) computed on the fly and the
resulting value is added to b ( b + (-c))?
Joe
Is two's complement always used as a storage method or is it computed
while computing the expression involved.
e.g., int a = -2, b = 3, c = 4, d;
d = b - c;
Here, is always 'a' stored as two's complement of '2'?
or
is always '-c' (two's complement of c) computed on the fly and the
resulting value is added to b ( b + (-c))?
Joe