Xor operations with -1

-1^3=4
how should we calculate it

@avinash_reddy
convert both numbers in their binary form and then calculate it,
for 8 bits
bin(-1) = 11111111
bin(3) = 00000011
xor = 11111100

dec(11111100) = -4