Zend
200-710 · Question #197
What will the following function call print? printf('%010.6f', 22);
The correct answer is C. 022.000000. See the full explanation below for the reasoning.
Strings & Patterns
Question
What will the following function call print?
printf('%010.6f', 22);
Options
- A22
- B22.00
- C022.000000
- D22.000000
How the community answered
(31 responses)- A3% (1)
- B10% (3)
- C81% (25)
- D6% (2)
Topics
#printf#format specifiers#zero-padding#float formatting
Community Discussion
No community discussion yet for this question.