PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed Need Money Easy and Quick?

int - unsigned = ?

 List
Subject: int - unsigned = ?
Poster: JohnDoeNOTOSPAMjohndoe64738@yahoo.com
Date: Sat, 24 Mar 2007 02:05:51 +0100
Related Postings:  
Let's say I did this:

i -=3D u;

i is a signed int and u is an unsigned int. According to the c++=20 standard the rvalue result is going to be converted to unsigned int?=20 Then what? Where does it say the result can be assigned to an int?

=E2=80=94 Otherwise, if either operand is unsigned, the other shall be co= nverted=20 to unsigned.

 

Page2Go2.com is not responsible for content of this message.