C Functions Question: Download C Functions PDF

Can you please explain the difference between syntax vs logical error?

Tweet Share WhatsApp

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.

Download C Functions PDF Read All 45 C Functions Questions
Previous QuestionNext Question
Can we use any name in place of argv and argc as command line arguments?What is logical error?