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)

C Other Question

Question. What are C identifiers?

Answer. These are names given to various programming element such as variables, function, arrays.It is a combination of letter, digit and underscore.It should begin with letter. Backspace is not
allowed.
Question. What are the facilities provided by preprocessor?
Answer. file inclusion
substitution facility
conditional compilation