If I have two bytes representing 117, 117 or 1110101 , 1110101 and I want to concatenate them (technically I know how) then which end attaches to which?
I understand they will be arranged in memory depending on endianess but overall, is there a standard way of concatenating bytes.
Lets say I want to concatenate these two into a 16 bit variable and they are arranged as above in little endian on a windows machine. 11101011110101 , i've just bolded on for clarity. Is that the way I would have to do it? OR, does the first byte always link to the least significant bits first? The reason I ask is that if concatenating bytes depends on endianess you are going to get two different results. I thought there may be some rules surrounding this.