Assume a=5,b=6; what will be result of a&b¿
Naushu:
mention the mathematical operations to be performed
Answers
Answered by
32
a = 5 = 00000101 to the base 2
b = 6 = 00000110 to the base 2
& is Bitwise AND operator and it returns 1 if both the cases are 1
Therefore, a&b = 00000100 to the base 2 = 4
Answered by
1
Answer:
The result of a&b will be 4
Explanation:
The & operator is the bitwise AND operator. It compares each bit of the first operand to the corresponding bit of the second operand, and if both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.
When we assume a=5, b=6;
a = 5 (binary: 0101)
b = 6 (binary: 0110)
So the result of a & b will be:
0101 & 0110 = 0100 = 4
So the result of a&b will be 4.
More question and answers:
https://brainly.in/question/39497273
https://brainly.in/question/26102927
#SPJ3
Similar questions