CHAP 3 (Concept of Programming Language)
CHAP 3 (Concept of Programming Language)
5.
2. Planning
Documenting
the solution
thye program
Syntax Errors:
A syntax error is an error in the source code of a program. Since computer programs must follow
strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the
programming language will produce a syntax error.
Example : C = ( A + B/2
Logical Errors:
In computer programming, a logic error is a bug in a program that causes it to operate incorrectly,
but not to terminate abnormally (or crash). A logic error produces unintended or undesired output
or other behavior.
Example : C = A + B and however programmer typed C = A – B
Runtime Errors:
A runtime error is a program error that occurs while the program is running. The term is often used
in contrast to other types of program errors, such as syntax errors and compiles time errors. There
are many different types of runtime errors. One example is a logic error, which produces the wrong
output.