tmt1
- 230
- 0
"Assume integer variable A holds 60 and variable B holds 13 then:A&B will give 12"
Why is this?
Why is this?
The discussion centers around the operation of bitwise arithmetic, specifically the bitwise AND operation between two integer variables A and B, where A is 60 and B is 13. Participants explore the binary representations of these integers and the resulting output of the operation.
Participants do not reach a consensus, as there is confusion regarding the binary results and interpretations of the bitwise operation. Multiple viewpoints and interpretations are presented without resolution.
There are unresolved aspects regarding the binary calculations and the interpretation of the results, particularly in relation to the confusion expressed by participants about the output of the bitwise AND operation.
tmt said:"Assume integer variable A holds 60 and variable B holds 13 then:A&B will give 12"
Why is this?
evinda said:Write the binary represetation of $A$ and $B$ and then add them.
For example, the binary representation of $A$ is $0011 1100$.
tmt said:I get 01001001 how is this 12?