When performing the AND operation on two integers, how is it calculated?

When performing the AND operation on two integers, how is it calculated?



The AND operation is calculated on each pairs of bits (the two bits at the same index in each number)

5 & 6 would return 4, because 5 = 101 and 6 = 110, so it returns the 4 because that is the index that is a 1 in both.

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

What does Latency mean?