answersLogoWhite

0

Define Syntax Error in computer

Updated: 8/9/2023
User Avatar

Wiki User

12y ago

Best Answer

A syntax error is a scenario in programming where the code that is written by a programmer which is incorrect as per the language structure. For example I say the following statement in English: it is syntactically wrong:

I currently in write java questions for wikianswers yesterday and tomorrow all day short.

If you see the above statement, it is grammatically wrong. That is exactly what a syntax error is for a java program. It is incorrect as per the programming language specifications.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Syntax error is a kind of error which occurs due to spelling, grammar, and rules violation.Syntax errors in computer programming happen during the process of writing code to run a program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define Syntax Error in computer
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

Violations of the strict precise set of rules that define a programminig language are called?

syntax error


What is database errors?

Testing: Can I leave a message when a syntax error shows up for this page on my computer? Testing: Can I lease a message even though I see a message that says 'syntax error' on this page on my computer?


What is a Syntex error?

In computer science a syntax error refers to an error in a sequence of characters which need to be in a specific programming language.


What is syntex?

In computer science a syntax error refers to an error in a sequence of characters which need to be in a specific programming language.


What is a syntex?

In computer science a syntax error refers to an error in a sequence of characters which need to be in a specific programming language.


What is error 601?

On a RadioShack TRS 80, It is a Syntax Error "Syntax Error 601"


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


What is expression syntax error?

A syntax error is a coding error that prevents successful compilation. Examples: const int a = 42; void foo (int); void bar (int); void foo () { // syntax error: definition does not match prototype declaration // reason: formal argument not defined // solution: define formal argument } void bar (int b) { if (a = b) { // syntax error in expression: a = b // reason: a is declared constant, cannot assign to constants outside of declaration // solution: did you really mean a == b? } } int main () { // syntax error // reason: return statement not found // solution: return a value to host environment }


Is syntax error a compilation error?

Not entirely. A compilation error can contain a syntax error, but what a syntax error actually is, is an error in how the coding is spelled. For example, say you are trying to program a router. You type in the code, of which you know it's the correct code, but receive an error. You proofread the code and notice that one or more of the words are not spelled correctly. This would be a syntax error. They can also take the form of misplacing the words in the code's syntax.


What are the ratings and certificates for Syntax Error - 2003?

Syntax Error - 2003 is rated/received certificates of: Australia:M


What is an Example of syntax error?

date


What type of errors we have in Java programming?

syntax error, Runtime error, Longic error