What will be the output of the following PHP code (13)?

53. What will be the output of the following PHP code?

<?php
printf("%x",65535);
?>  
  1. ffff
  2. 0xffff
  3. FFFF
  4. 0XFFFF

Answer: A) ffff

Explanation:

%x in printf() function prints/converts the number in hexadecimal number where letters are in lowercase.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.