Hi team,
If you cast the following variable and assign it to another variable, what will be put in the assigned variable?
unsigned char A;
unsigned short B;
B=0x1234;
A=(unsigned char )B;
A=?
In my environment, 0x1234 is entered. Does casting not delete the upper 1 byte? Do you need mask processing (& 0xFF)?
Are there any precautions when casting?
Best regards,
sai