title: How do I convert and break a 2 byte integer into 2 different chars in C?
body: <p>I want to convert an unsigned int and break it into 2 chars. For example: If the integer is 1, its binary representation would be 0000 0001. I want the 0000 part in one char variable and the 0001 part in another binary variable. How do I achieve this in C?</p>