Hi,

In the follwing code (simplified bit)

Code:
unsigned short x = 0x18f;

int z = 8;

int y = (x & 0x0f ) + z;

cout << y ;

it is displaying, 17.. i was thinking it will be 23..