I want to create a 32 bit integer programmatically from four bytes in hex such as:
Lowest byte is AA
Middle byte is BB
Other middle byte is CC
Highest byte is DD
I want to use the variable names for that where:
byte myByte_1 = 0xAA
byte myByte_2 = 0xBB
byte myByte_3 = 0xCC
byte myByte_4 = 0xDD
So by using the above bytes and using bitwise operations how can we obtain: 0xDDAABBCC ?