Pro lesson · Preview
Errors & Debugging
Errors are messages from the compiler trying to help. Learn to read them, distinguish the three kinds of bugs, and build the mindset that turns debugging from frustration into a skill.
20 min read
This lesson is part of Pro
Upgrade to unlock the full lesson and the complete interview Q&A.
Unlock with Pro5 interview questions on this topic
Each one opens a full worked answer.
What's the difference between a compile-time error, a runtime error, and a logic error?The compiler prints fifteen errors. Where should you start?What is bisection in debugging?Why turn on -Wall -Wextra and -Werror?You added a printf to debug, the bug went away, and removing the printf brings it back. What's likely going on?
This is just the start
Sign up free to track your progress through this course, mark lessons complete, and work through the full interview Q&A.