nerdexam
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)
  • A
    3% (1)
  • B
    10% (3)
  • C
    81% (25)
  • D
    6% (2)

Topics

#printf#format specifiers#zero-padding#float formatting

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice