subtraction between unsigned ints
Teruhiko Kurosaka - Sun Intercon
kuro at shochu.Sun.Com
Wed Sep 6 04:19:40 AEST 1989
Does pANSI defines the datatype of the result of subtraction
between unsigned integers? Would it be also unsigned? Then
what would be the result of subtraction of a number from a
smaller number? I am talking about this situation like:
unsigned int u, v;
long int x;
u=3; v=5;
x=u-v;
Is x guranteed to be -2?
-------
T. Kurosaka ("Kuro") --- Sun Microsystems, Intercontinental Operation
Internet: kuro at Corp.Sun.Com Voice:+1(415)496 6121 Fax: +1(415)858 0284
US Mail: Mail Stop A6-18, 1870 Embarcadero Rd., Palo Alto, CA 94303, USA
--
-------
T. Kurosaka ("Kuro") --- Sun Microsystems, Intercontinental Operation
Internet: kuro at Corp.Sun.Com Voice:+1(415)496 6121 Fax: +1(415)858 0284
US Mail: Mail Stop A6-18, 1870 Embarcadero Rd., Palo Alto, CA 94303, USA
More information about the Comp.std.c
mailing list