Discussion Forum
Que.  The bitwise OR of 35 with 7 in C will be: 
a.  35 
b.  7 
c.  42 
d.  39 
Answer:39 
kapi :(August 24, 2019)
please give me explanation

Click to Add Comment 
Anagh R K :(April 26, 2020)
Find out the Binary equivalent of both 35 and 7. Then Apply OR operation
Binary of 35 = 100011 Binary of 7 =111 We need to add 3 more zeros to 111 (to equivalent with positions) Then apply OR operation 100011 000111  100111 Find out the Decimal equivalent of 100111 = 39. 
Click to Add Comment 