Explain the difference between lexical and syntactic errors.
Answers
Answered by
6
Answer:
A lexical error occurs when the compiler does not recognize a sequence of characters as a proper lexical token. 2ab is not a valid C token. ... A syntax error occurs when a sequence of tokens does not match a C construction: statement, expression, preprocessing directive...
Answered by
0
Answer:
Mark as brainlist
Explanation:
A lexical error occurs when the compiler does not recognize a sequence of characters as a proper lexical token. 2ab is not a valid C token. ... A syntax error occurs when a sequence of tokens does not match a C construction: statement, expression, preprocessing directive..
Similar questions