Skip to the task
Layout
Back to classic view

You are looking at lesson 11. Your place is still Practice test 1, task 1: About.

CHECKTask 16 of 20 · step 6: Drills: check yourself

strtod and a comma

What does printf("%.1f \"%s\"\n", x, end) print after x = strtod("21,5", &end)?

Stuck?

21.0 ",5": strtod stops at the comma, so the line is bad.