Assume a=15, b= 20 ; what will be the result of the following. A&b, a|b, a^b, a>>3, (~b)
Answers
Answered by
0
Answer:
operator operation Result & a&b 00001111 a 00010100 b a&b = (00000100)2 = 410 | a|b 00001111 a 00010100 b a|b = (00011111)2 = 3I10 ^ a^b 00001111 a 00010100 b a^b = (00011011)2 = 272 >> a>>3 00001111 a 00000001 a>>3 = 1 ~ ~b b = 00010100 a ~b = -21Read more on Sarthaks.com - https://www.sarthaks.com/1025761/assume-a-15-b-20-what-will-be-the-result-of-the-following-operations
Similar questions