Question 9226 – GATE 2007
November 10, 2023Question 7788 – Algorithms
November 10, 2023Question 4075 – UGC NET CS 2005 Dec-Paper-2
The bitwise OR of 35 with 7 in C will be :
Correct Answer: D
Question 12 Explanation:
Step-1: First we have to convert into binary numbers
(35) 10 = ( 0010 0011 ) 2
(7) 10 = (0000 0111) 2
Step-2: Perform OR operation on both binary numbers.
0010 0011
0000 0111
—————
0010 0111
—————-
Step-3: Convert result into Decimal number
(0010 0111) 2 = (39) 10
(35) 10 = ( 0010 0011 ) 2
(7) 10 = (0000 0111) 2
Step-2: Perform OR operation on both binary numbers.
0010 0011
0000 0111
—————
0010 0111
—————-
Step-3: Convert result into Decimal number
(0010 0111) 2 = (39) 10
35
7
42
39
Subscribe
Login
0 Comments