int x = 5; cout<<(char)x;
the code above outputs an int x in raw binary, but only 1 byte. what I need it to do is output the x as 4-bytes in
and what about this? int x = 5; cout<<(char) ((0xff000000 & x) >> 24); cout<<(char) ((0x00ff0000 & x) >> 16); cout<<(char) ((0x0000ff00 & x) >> 8); cout<<(char) (0x000000ff & x);
int x = 5; cout<<(char) ((0xff000000 & x) >> 24); cout<<(char) ((0x00ff0000 & x) >> 16); cout<<(char) ((0x0000ff00 & x) >> 8); cout<<(char) (0x000000ff & x);