Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 430 Bytes

0423.md

File metadata and controls

21 lines (18 loc) · 430 Bytes

What is the output of the following PHP script?

$a = 0.5;
$b = 0.1;
$c = 16;
echo sprintf('%01.2lf %.1lf 0x%x'$a$b$c);
  • A) 0.50 0.1 0x10
  • B) 0.50 .1 0x10
  • C) 0.50 0.1 0x16
  • D) 0.5 0.1 0x16
Answer

Answer: A