Home »
MCQs »
Perl Programming MCQs
Which escape sequence is used to print hexadecimal of a number in Perl?
50. Which escape sequence is used to print hexadecimal of a number in Perl?
- %h
- %b
- %hex
- %x
Answer: D) %x
Explanation:
The "%x" character sequence is used to print the number's hexadecimal conversion.