answersLogoWhite

0


Best Answer

Syntax error is when something is wrong with how a code is written. An execution error occurs when the program comes up to something that it cannot handle because it does not have the code for it.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between syntax error and execution error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a compilation error and logic error?

errors which come during compilation is known as compilation error. here we get syntax errors only not logical errors like division by zero. logical error occur during run time example:if you write a program for division with zero you will not get compilation error but during execution you will error


Difference between break and continue statements in wml?

Break statements:-its terminates the current while or for loop and continue the program execution from the statement following the terminated.NOTE:-note that it is wmlscript syntax error to use the break statement outside of while or a for statements.example;Breakstatement:Break;Continue statement:-this statement terminate execution of a block of statementin while or for loop and continues execution of loop with the next iteration.note that the continue statement does not terminate the execution of loop and also is wmlscript syntax error to use the break statement outside of while or a for statements.-> in while loop, it jumps back to the condition.-> in for loop,it jumpsto the update expression.syntax:continuestatement:continue;


What is error 601?

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


What is difference between syntx error and logical error?

A syntax error is when you break the grammar rules of the language, such as forgetting to terminate a C++ statement with a semi-colon. A logical error is when your code does not perform as expected, typically due to an assumption that proves to be incorrect.


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.


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 the difference between compile-time error and the run-time error?

A run-time is an error that occurs when the program is executing (running). This is where segfaults and other horrible things happen. A compile-time error is an error that occurs when you are compiling the code. This is where code syntax and semantics are checked. You want errors to only occur here.


How do you Display The Error Messages in PHP?

To display your own defined error message in php simply echo error message. To see errro message while query execution simply do mysql_error(); Or so enable syntax error and warnings use error_reporting(1) in the beggining of script.


What is an execution time error?

An error that occurred during the execution. Surprised, aren't you?


What is the difference between a mistake and an error?

There is no difference.


What is the difference between a error and a mistake?

There is no difference.