#include<stdio.h>
typedef unsigned char *byte_pointer;
void show_bytes(byte_pointer start, int len)
{
for(int i = 0; i < len; i++)
printf(" %.2x", start[i]);
printf("\n");
} //show_bytes
int main(void)
{
short sx = -12345;
unsigned short uy = sx;
printf("uy = %u :\t", uy);
show_bytes((byte_pointer) &uy, sizeof(unsigned short));
return 0;
}