What will be the radix value if the string begins with 0x?

Tiên Hương

New member
What will be the radix value if the string begins with 0x?
A. 13
B. 14
C. 15
D. 16
 
Answer: d
Explanation: If the string begins with 0x, then the radix value will be 16. If the string begins with “0”, the radix is 8 (octal). If the string begins with any other value, the radix is 10 (decimal).
 

Tìm kiếm

Back
Top