How to store unsigned int value to unsigned char variable?

291 views Asked by At

Suppose I have

unsigned int x = 0x12a
unsigned char y = 0x000

How can I make x = y? When I try to assign x to y, i get y = 0x02a

0

There are 0 answers