From the course: Debugging C Code

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Understanding bugs

Understanding bugs - C Tutorial

From the course: Debugging C Code

Start my 1-month free trial

Understanding bugs

- [Instructor] The legendary first programming bug was a moth caught in the circuitry of a Mark II computer in 1946. Even so, the term bug has been used for a while in the context of a glitch, but it holds a special place in the history of computing. Since that memorable moth, bugs remain a constant in computers. So much so that programming might be better termed debugging. Bugs are prevalent and no programmer is immune. Of the lot, I set programming bugs into three categories: syntas errors, flaws in logic or program flow, and crashes. Syntax errors include missing items, improperly formed statements, and other mistakes. These bugs happen to everyone. But the good news is they can be located by the compiler or even the editor. Logical flaws are caught when the program doesn't run as intended. The code compiles but something doesn't work right or perhaps nothing happens. The code is performing, but because computers…

Contents