hello sirs. im trying to turn two 8-bit hex characters that represent the lsb and msb of an integer. below is the code i am using. i am getting output though im not sure of the validity.
char a = 0x01; //msb char b = 0x3D; //lsb short int d; d = ((short int) (a << 8)) | b;
is this the way to go or is there a more efficient way to ensure avoiding the loss of data?