Skip to the task
Layout
Back to classic view

You are looking at: Practice test 2. Your place is still lesson 6, task 1: Arrays.

CHECKTask 10 of 17 · step 3: Questions 7–12

fgets with a small buffer

The file has the line Kaunas-Vilnius. char line[8]; a loop with fgets prints [%s]. What does it print?

Stuck?

[Kaunas-], [Vilnius] and [ with ] on the next line: 7 characters at a time, the last piece is just '\n'. (Topic 11)