What is the difference between syntax errors, compilation errors, runtime errors, and free variable errors?
A syntax error is the result of violating the syntax of the language. A compilation error is the result of missing compiler capabilities. A run time error is the result of code which produces wrong results. Examples: 1: Writing gto instead of goto is a violation of syntax. Usually, syntax errors are caused by typos. 2: If a compiler can treat only input files which are not longer than 64 kbyte and the input file is longer, this is a compiler error. Generally compiler errors are errors caused by compilers who do not know how to treat the code in difficult situations. 3: If a value is defined as zero and another value will be divided by it, this is a divideByZeroError. These errors occur mostly while the program is running, and therefore are called run time errors.