I have a byte array, for example (byte array can be more or less than 3 bytes)
byte[] array = {0b00000011, 0b00111011, 0b01010101}
How can I remove the last bit of bytes: 0b00000011, 0b00111011, 0b01010101 because I want to get result like this 11|0111011|1010101 but I have no idea how to do that
It is not really clear, but perhaps I understand: you want to remove all the non-significant bits in front of a byte. You could use a string for that; in pseudo-code:
Now the string ST contains what you want (if is that that you want...).