Q. What will be the output of the following
β
Correct Answer: (A)
2
Explanation: ^ is the xor operator. the binary form of 4 is 0100 and that of 12 is 1100. therefore, 0100^1100 is 1000, which is equal to 8.
Explanation by: Mr. Dubey
^ is the xor operator. the binary form of 4 is 0100 and that of 12 is 1100. therefore, 0100^1100 is 1000, which is equal to 8.
Discussion
Question Analytics
960
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
90%
Success Rate