What is the difference between syntax errors and runtime (logic) errors?
Programming errors usually fall into two different categories: Syntax and Logic (or run time) errors. Syntax errors are usually the easy ones to catch. They are the semicolon you left out or the curly bracket you forgot. Usually, your program will not compile with Syntax errors. Syntax being the “grammar” of the programming language, the compiler will catch most, if not all, of these errors. This is because the compiler does not understand what you are trying to tell it to do. Logic errors are hard to find! They are the type of error which makes one plus one equal 593.7 Somewhere in your code (not always where you see the problem) you have told the compiler to do something the wrong way. To you the logic of your program works. In other words, you understand what you are saying. The problem is that the compiler thinks you are asking it to do something else. Sometimes this difference of opinion causes your program to give the wrong output. Sometimes it causes the program to crash when it