Math operation in Java

Posted by joroj on Stack Overflow See other posts from Stack Overflow or by joroj
Published on 2010-01-02T11:44:47Z Indexed on 2010/04/07 1:13 UTC
Read the original article Hit count: 243

Filed under:
|

Hello, what "^" operator does?

when I try this:

int a = 5^n;

it gives me: for n = 5, returns 0 for n = 4, returns 1 for n = 6, returns 3

What is this?

© Stack Overflow or respective owner

Related posts about java

Related posts about operators