When writing programs, code should be as legible and error free as possible. Debugging helps keep code free of errors and documenting helps keep code clear enough to read.
Part of Computer ScienceProgramming
Save to My Bitesize
Logic errors occur when there is a fault in the logic or structure of the problem.
Logic errors do not usually cause a program to crash. However, logic errors can cause a program to produce unexpected results.
More than one type of logic error may exist. Parts of the program may:
Any one or more of these errors may exist in a program, and each will cause the program to behave unexpectedly.