Origin Ver.8 SR6:
Operating System: XP
Hi,
using datatype UINT behaves not in the way I would expect.
void integer_data_types_ex1()
{
int iNum;
UINT uiNum;
USHORT usNum;
iNum = -5;
uiNum = (UINT)iNum; // value stays the same
usNum = (USHORT)iNum;
printf("unsigned integer: %d\n", uiNum); // -5
printf("unsigned short: %d\n", usNum); // 65531
}
|-- TreeNode
...|-- a??
...|-- ha!!