why does this code reverse the byte orderCode:array[0]=0x11; array[1]=0x22; array[3]=0x33; array[4]=0x44; unsigned int convert4CharArrayToInt(char array[]) { int intvar=0; intvar = * (int *) &array[0]; return intvar; } returns: 0x44332211

|
Results 1 to 5 of 5
Thread: reverse byte orderThreaded View
|
|