This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280039: About the cast

Part Number: TMS320F280039

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