我發現我這題做不出來是卡在 a^2 代0卻=2
為什摩0^2=2
在C語言中「^」 這個運算不是次方,請參考 http://www.cplusplus.com/doc/tutorial/operators/
| operator | asm equivalent | description |
|---|---|---|
& | AND | Bitwise AND |
| | OR | Bitwise inclusive OR |
^ | XOR | Bitwise exclusive OR |
~ | NOT | Unary complement (bit inversion) |
<< | SHL | Shift bits left |
>> | SHR | Shift bits right |