Bitwise XOR ^ ... 將兩個變數對應的位元進行XOR 邏輯運算。 ... 陣列裡的數字全部xor起來,與先前結果做xor。 for (int i=0; i<9; ++i) n ^= array[i];
確定! 回上一頁