Difference between Compile Time Errors and Run Time Errors
Compile-time
- During compile time the source code is converted into an executable code.
Run time
- During the run time the executable code which is generated during the compile time, is started running.
Compile-time errors
- Occurs due to the wrong syntax or semantics of any programming language.
- The compiler will not allow to run the program until all the errors are removed from the program.
- When all the errors are removed , only then the compiler will generate the executable file.
- There are two types of compile time errors. Those are
- Syntax errors
- Semantic errors
1. Syntax Errors
- When we does not follow the syntax of the used programming language, then the compiler will throw the syntax error.
2. Semantic errors
The semantic errors occurs when the coding statements are not meaningful to the compiler.
Thank you.
ReplyDelete