C
Programming and Technical
Programming
Technical
Question. Difference between syntax vs logical error?
Answer.
Syntax Error
These involves validation of syntax of language.
compiler prints diagnostic message.
Logical Error
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.
difficult to find
Read Solution (Total 1)
-
- Syntax Error:=due to weak knowledge of programming.
example
printf("nhello world")
due to not using of semicolon at end of the statement.
Logical Error:= due to weak knowledge of formula
example
simple intrest=principle*rate*time/10;
in place of 10 there should be 100 to get correct result - 10 years agoHelpfull: Yes(0) No(1)
C Other Question