Hi,
MyByte is byte that could contain binary value between 0000 and 1111
int sum = 0;
for (int i = 0; i <= 3; i++)
{
if((MyByte & 2^i ) == 1)
sum += 2^i;
}
What will be the value of SUM at the end of this loop ?
tnx,