Given two literals 0x001B and 033. What are these equal to?

A 21 and 23
B 27 and 33
C 33 and 33
D 27 and 27
Answer & Explanation
Option: [D]

Let us convert the given Hexadecimal number 0x001B to Decimal:

The first part is 0x160=0

The second part is 0x163+0x162+1x161+11x160 [Though B is equivalent to 11]


So, 0+27=0

Now we convert the octal number 033 to decimal:



Your Valuable Comments Please...