I just want to ask if my method is correct to convert from little endian to big endian, just to make sure if I understand the difference.
I have a number which is st
one more suggestion :
unsigned int a = 0xABCDEF23; a = ((a&(0x0000FFFF)) << 16) | ((a&(0xFFFF0000)) >> 16); a = ((a&(0x00FF00FF)) << 8) | ((a&(0xFF00FF00)) >>8); printf("%0x\n",a);