Learn C Programming

Lesson 6 of 8 · Undefined Behaviour, Debugging and Reading Real C

Module 16 · Undefined Behaviour, Debugging and Reading Real C

Problems: Find the Bug

ProProblems

Ten problems, graded against hidden tests. Eight of them you met inside the lessons of this module. Two are new, and both are medium: feof-average and macro-zero.

Checking what this lesson needs for you…

What is inside Problems: Find the Bug

  1. The judge sees your output, and nothing else
  2. Reading a symptom
  3. Reproduce, shrink and halve before you touch the code
  4. Fix the cause, not the symptom

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test