Difference between revisions of "Syntax Error"

esse quam videri
Jump to: navigation, search
Line 4: Line 4:
  
 
=Relevance=
 
=Relevance=
Syntax errors will be a common sight. The most famous is forgetting to add a semicolon at the end of a line of code.  
+
Syntax errors will be a common sight. The most famous is forgetting to add a semicolon at the end of a line of code. Most of the time, syntax errors are quick to resolve.
  
 
=Explanation=
 
=Explanation=
Line 10: Line 10:
  
 
==Notes==
 
==Notes==
In Microsoft Visual Studio, syntax errors are typically underlined in a red squigly line to try to help identify.  
+
In Microsoft Visual Studio, syntax errors are typically underlined in a red squigly line to try to help identify.
  
 
==See Also==
 
==See Also==

Revision as of 15:40, 21 August 2019

Definition

A syntax error is a type of error that will prevent the code from compiling at compile time.

Relevance

Syntax errors will be a common sight. The most famous is forgetting to add a semicolon at the end of a line of code. Most of the time, syntax errors are quick to resolve.

Explanation

Because syntax errors prevent the code from compiling, compiled programming languages (such as C#) will not allow the user from running the code until the error is resolved.

Notes

In Microsoft Visual Studio, syntax errors are typically underlined in a red squigly line to try to help identify.

See Also

Logic Error