Syntax error
Encyclopedia : S : SY : SYN : Syntax error
A syntax error refers to a mistake in a statement's syntax. This term is used mostly in association with programming languages or command line interfaces. In compiled programming languages, a syntax error is a fatal error that the programmer must correct before being able to fully compile the program. Some IDEs are able to display syntax errors in real-time.
Syntax errors may also occur when an invalid equation is entered into a calculator. This is most often caused by opening brackets without closing them, or less commonly, using several decimal points in one number.
Example of a syntax error in
- include
int main()
In the above example, an expected semi-colon is missing after the return statement.See also
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
- include
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
