Quantcast
Channel: XOR giving unexpected output in JAVA - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Eran for XOR giving unexpected output in JAVA

You are not XORing the numbers you think you are XORing.You are XORing one million one hundred and ten with elevenThe XOR is performed on the bits of the binary representation of those two numbers, so...

View Article



Answer by Antoniossss for XOR giving unexpected output in JAVA

This is wrong from the beginning String lastdigits="1000110"; int lastdigitsint=Integer.parseInt(lastdigits);last digit value will be 1000110 - thats ten millions houndred and tenso the binary...

View Article

XOR giving unexpected output in JAVA

I am trying to implement finite fields in JAVA, for which I need to XOR two binary numbers.Here is my code: String lastdigits="1000110"; int overflow=11; int lastdigitsint=Integer.parseInt(lastdigits);...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images