c get nth byte of integer May 25, 2023 by Tarik int x = (number >> (8*n)) & 0xff; where n is 0 for the first byte, 1 for the second byte, etc.