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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -