21.10.2009, 18:42
Why this operator make addition ?
print("%d",2^4); // will result 6
Originally Posted by Angel φ
e.g.:
pawn Код:
|
public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff)) // 255
{
string[x] -= 256;
}
}
return 1;
}
e1 ^ e2 results in the bitwise “exclusive or” of e1 and e2. |