c# - What does ^ operator do? -
i thought ^ did that. expected:
10^0=1 10^1=10 10^2=100
what i'm getting
10^0=10 10^1=11 10^2=8
the actual code is
int value = 10 ^ exp;
replacing exp 0, 1, , 2 ^ operator do?
math.pow(x, y) x raised power of y. doing xor. c# operators
Comments
Post a Comment