Debugging (cont)
Consequences of bugs:
- compiler gives syntax/semantic error
(if you're very lucky)
- program halts with run-time error
(if you're lucky**)
- program never halts
(not lucky, but at least you know)
- program completes, but gives incorrect results
(if you're unlucky)
** but if the runtime error is due to pointer mismanagement, you're very unlucky
|