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 ArticleAnswer 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 ArticleXOR 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
More Pages to Explore .....