Difference between Compile Time and Run Time
Compile Time :
It is a Time window During which a Program is Compiled. During Compilation , a source code or program is converted into machine code.
There are two types of errors in Compile Time known as Compile Time errors :
- Syntax Error
- Semantic Error
The Error occurs due to mistake in syntax or predefined way of writting a programm during compilation is called Syntax Error.
Example :
Semantic Error :
The wrong and meaningless code/statement in a programm are called Semantic Errors.
Example :
It is a time window during which a Compiled program is executed or in a process of execution. Here is no Role of Compiler because the program is already compiled and is in running process.
Run Time Error :
During Run Time the Error occurs is detected by the User itself only.
Example :
Comments
Post a Comment
If have any douts comment here.