So to find ?,18 should I use (myArray[? % 8][18] & (1 << ?)) >> ? ? Or have I not understood what you were saying?