ProAnswers.org

Difference between syntax vs logical error?

Syntax Error

1-These involves validation of syntax of language.

2-compiler prints diagnostic message.

Logical Error

1-logical error are caused by an incorrect algorithm or by a statement mistyped in such a way

that it doesn’t violet syntax of language.

2-difficult to find.