C
C
ceramicthree2020-05-29 20:05:11
Programming
ceramicthree, 2020-05-29 20:05:11

Why does XOR the sum of these array elements return a negative number?

2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483648

I add these elements of the array, it seemed to me that the same elements should nullify each other and as a result only the number 2147483648 will remain, but -2147483648 remains. Where does minus come from?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question