give an example for syntax error
Answers
Answered by
3
syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. For compiled languages, syntax errors are detected at compile-time. A program will not compile until all syntax errors are corrected
Answered by
1
Example, a missing semicolon at the end of a line or an extra bracket at the end of a function may produce a syntax error.
In most cases, the compiler or interpreter provides the location (or line number) of thesyntax error, making it easy for the programmer to find and fix the error
shyam9955:
thankss
Similar questions